Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

bean:write tag and & sign

 
Muhammad Imad Qureshi
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Specify filter="false" in the <bean:write> tag. This will tell struts not to escape sensitive characters.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic