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 display richtext html entered with tinymce in table Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "display richtext html entered with tinymce in table" Watch "display richtext html entered with tinymce in table" New topic
Author

display richtext html entered with tinymce in table

Armin Vetek
Greenhorn

Joined: Aug 21, 2010
Posts: 29
Hi,

I am using tinymce to input the message text. Tinymce is a rich text editor.
For example: The user enter a word Struts2 into a tinymce editor. Tinymce returns a message decorated with html p tag and a message is saved into the database as <p>Struts2</p>. Please nota a p tag added to the string.

Html tags are considered as a string when the value is retrieved from the database. <p>Struts2</p> is displayed in the table instead only Struts2.

I tried to use StringEscapeUtils but I could not find a solution.

I need some help...

Best regards,
Javanus


http://www.javanus.com/blogs
Johannes Geppert
Ranch Hand

Joined: Jan 12, 2010
Posts: 67
when using s:property try the escapeHtml attribute.



Johannes


My Java and Webprogramming Blog
Armin Vetek
Greenhorn

Joined: Aug 21, 2010
Posts: 29
This is it!

Thank you,
Javanus
 
 
subject: display richtext html entered with tinymce in table