File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Text parsing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Text parsing" Watch "Text parsing" New topic

Text parsing

M. White

Joined: Dec 27, 2009
Posts: 18

Hi guys,
I already tried searching the forum for entries similar to mine. Unfortunately I only found 1 but did not work to me. So here's my problem: I getting a String from server that is formatted as a html code and put it in <td> tag. But the string was parsed only as text. I also added a <pre> tag but it still didn't work. By the way, im using struts2 property tag. Any help?

didnt render as html code.

Joe Ess

Joined: Oct 29, 2001
Posts: 9189

If you look at the Struts 2 Documentation for that tag, you'll notice a parameter called "escape" that will help you out.

[How To Ask Questions On JavaRanch]
M. White

Joined: Dec 27, 2009
Posts: 18

I didn't even bother to check that. Thanks a lot Joe Ess!!
I agree. Here's the link:
subject: Text parsing
jQuery in Action, 3rd edition