• Post Reply Bookmark Topic Watch Topic
  • New Topic

Jstl Expressions not rendering after database query  RSS feed

 
Martyn Clark
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have a HTML table template which I would like to store in the database only when I do this the jstl expressions no longer render and display as is ${some.expression} is it possible to have these render?

Thank you

Martyn
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66158
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unlikely, but it hard to say without more info. How is the template getting from the DB to your page? Likely, it's after the translation phase when JSTL is evaluated.

You'll likely have to perform your own run-time evaluation -- which might be easier with a templating engine such as Freemarker.
 
Martyn Clark
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bear,

I'm just doing a select query using jdbc and using a table with the needed expressions to resolve the values, which works find when left in the jsp page, but when I removed the whole table along with the EL expression and placed it in a column in the db table and replaced the code with ${content} in the jsp page it no longer resolves the expressions. thanks for the freemarker pointer I will take a look.

Regards Martyn
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!