This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Struts and the fly likes bean:write tag and & sign Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: bean:write tag and & sign
 
Similar Threads
passing checkbox array
Help Needed with Struts Tags
window.location not passing parameter
Passing parameter through html link tag
the value of <%@taglib uri="" %>?