It's not a secret anymore!
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts tag to print html" Watch "Struts tag to print html" New topic

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..

<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.

Consultant, Sima Solutions
I agree. Here's the link:
subject: Struts tag to print html
It's not a secret anymore!