File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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 = ""

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

amp not in quotes.
Why is it doing so. Can someone please help.
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.

Consultant, Sima Solutions
I agree. Here's the link:
subject: bean:write tag and & sign
It's not a secret anymore!