Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts2 tags -- render HTML string from db?  RSS feed

 
Aaron Wilt
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all, hopefully this is a fairly basic question but I've got an HTML string that's saved in the database. I need it to render on my product page (ex, string has "<strong>Running Shoes</strong>" and it needs to render on the JSP as bold, etc)

Currently I'm trying to use <s roperty like this:

<s roperty value='product.longDescription'/>

to get the desired member from my Product object.

What's the best method to have the JSP actually render this HTML string and not just display all the tags?

Thanks!
Aaron
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!