learn java
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

Win a copy of The Software Craftsman this week in the Agile forum!
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: 9073

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!!
Have you tried LearnNowOnline? http://www.learnnowonline.com/
subject: Text parsing