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

Text parsing

M. White
Greenhorn

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
Bartender

Joined: Oct 29, 2001
Posts: 8710
    
    6

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


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
M. White
Greenhorn

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: http://aspose.com/file-tools
 
subject: Text parsing
 
Similar Threads
<> preview problem
Applet
How to show only 10 entries in a jsp-page?
JSP with Stylesheet
Html tag content wrapping