Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts tag to print html

 
Chris Boldon
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you specify filter="false" in the <bean:write> tag, Struts will not escape the html sensitive characters in the text.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic