More view technologies

Spring MVC supports an impressive set of view technologies; you can use any of these after adding the right Maven dependencies in your project. Spring provides view resolvers out of the box for most of the view technologies. Here is a list of other view technologies supported by Spring MVC:

  • Velocity and FreeMarker
  • Groovy markup templates
  • JavaScript templates (on Nashhorn): Handlebars, Mustache, ReactJS, and EJS
  • ERB templates on JRuby and String templates on Jython
  • XML views and XSLT (built in)
  • Tiles
  • PDF (iText) and Excel (Apache POI)
  • JasperReports
  • Feed views

In most cases, you will need to mix and match view technologies in the same application. For example, you may use JSP for normal HTML screens, but you will still need JasperReports to report screens and may need to download some reports as PDF and Excel files. Using Spring MVC ensures that all these features can be easily integrated.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset