• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to implement template based page ?

 
Edward Chen
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am thinking how to implement template based page. Like Joolma, template file is saved in the database, we need to render it dynamically.

For example, a jstl page is saved in the database, like


Then I need to select this page from database and render it. like

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65518
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might want to look into templating engines such as Freemarker.
 
Edward Chen
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:You might want to look into templating engines such as Freemarker.


why JSTL can't do this ?

thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65518
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Once your page is executing, it's long past the translation stage when JSTL and EL are converted to code.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!