• Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts2 tags -- render HTML string from db?

 
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
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!