wood burning stoves 2.0*
The moose likes Struts and the fly likes Struts tag to print html Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts tag to print html" Watch "Struts tag to print html" New topic
Author

Struts tag to print html

Chris Boldon
Ranch Hand

Joined: Aug 10, 2006
Posts: 190
I have a text area that uses a rich text editor. This editor saves the input as html. Is there a struts tag I can use to output the html to display it formatted? When I use bean:write is outputs the unformatted stuff..

ie:
<ul> <li>This is a test</li> <li>This is 2</li> <li>This is 3</li> </ul> <ul> <li>This is 4</li> </ul>

I need it to display it formatted.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
If you specify filter="false" in the <bean:write> tag, Struts will not escape the html sensitive characters in the text.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts tag to print html
 
Similar Threads
CSS navigation Menu
Hiding child element - IE works, but Mozilla no
selecting pure text in jquery
UL list in a JTextPane
Problem with struts-menu for second level submenu