Is there a real alternative to JSP tags when using Spring MVC?
I'm using Spring MVC to integrate it to a JS framework. What i'm missing in Spring MVC is a kind of templating framework
I have previously used Facelets templating with JSF2 and I love it.
Is there a framework/technology that integrates well with Spring MVC and offers similar features as Facelets?
- no (or little) xml configuration
- can define sections in one template file and fill all supply content for all sections from one file
I was looking at Apache Tiles documentation and it seems that you need to have separate files for each section in template.
Example (pseudocode) :
template.html:
<insert:headerSection>
<insert:bodySection>
using-template.html:
<use-template: template.html>
<define:headerSection>this is a header</define:headerSection>
<define:bodySection>this is a body</define:bodySection>
I know that I can achieve this using JSP but code looks much cleaner and faster to write using Facelets.
If JSP is my best choice I found some suggestions in this thread