my dog learned polymorphism*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
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: 8836
    
    7

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!!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Text parsing
 
Similar Threads
<> preview problem
Applet
Html tag content wrapping
How to show only 10 entries in a jsp-page?
JSP with Stylesheet