GeeCON Prague 2014*
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


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
 
GeeCON Prague 2014
 
subject: Struts tag to print html