aspose file tools*
The moose likes Struts and the fly likes bean:write tag and & sign Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "bean:write tag and & sign" Watch "bean:write tag and & sign" New topic
Author

bean:write tag and & sign

Muhammad Imad Qureshi
Ranch Hand

Joined: Sep 13, 2005
Posts: 238
I have following line of code in my jsp

window.location = "<bean:write name="securityInterceptForm" property="securityInterceptDTO.securityReturn" />";

where property value at runtime = "session.do?requestAction=fetchSessionById&oid=1"

but this tag appends an "amp;" to & so that queryString becomes

"session.do?requestAction=fetchSessionById&"amp;"oid=1"
amp not in quotes.
Why is it doing so. Can someone please help.
Thanks
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Specify filter="false" in the <bean:write> tag. This will tell struts not to escape sensitive characters.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: bean:write tag and & sign