my dog learned polymorphism*
The moose likes Struts and the fly likes Struts2 tags -- render HTML string from db? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 tags -- render HTML string from db?" Watch "Struts2 tags -- render HTML string from db?" New topic
Author

Struts2 tags -- render HTML string from db?

Aaron Wilt
Ranch Hand

Joined: Sep 26, 2001
Posts: 49
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
 
Don't get me started about those stupid light bulbs.
 
subject: Struts2 tags -- render HTML string from db?
 
Similar Threads
struts2:Displaying dtatbase values in jsp
Flushing Output Stream (s2)
result type xml
Problem in running struts application
problem with struts2...