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 escape= tag" title="" /> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "escape="false" for <s: property> tag" Watch "escape="false" for <s: property> tag" New topic
Author

escape="false" for <s: property> tag

kedu par
Greenhorn

Joined: Nov 21, 2007
Posts: 11
what is the use of escape="false" for <s: property> tag?

Thanks..
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

To turn off HTML escaping, just like it says in the documentation.

http://struts.apache.org/2.x/docs/property.html
kedu par
Greenhorn

Joined: Nov 21, 2007
Posts: 11
Hello,

Can you explain this, by giving some simple code ....(What is meant by to escape HTML ?)

Thanks
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

...

You know how if you use a < in HTML it tries to interpret it as a tag? And how if you want a < to show up you have to use &lt;?

That's HTML escaping, and that's what the "escape" attribute controls--whether or not HTML is escaped.

Really, it would have been way quicker to search the web for "HTML escaping" then just try the tag with a property containing HTML and use both values for "escape".
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: escape="false" for <s: property> tag