File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts2 tags -- render HTML string from db?