This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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