<s:url/> has an attribute called escapeAmp (default = true) that may assist you.
http://struts.apache.org/2.0.11/docs/url.html Srinivas.N. wrote:
When I pass URLs as parameters, is there a way to not html escape the '&' characters? Example: Lets say I have a JSP where I want to pass a URL as a param within another URL. Example: Some JSP --------- <!-- Get the current URL --> <s:url id="currentUrl" includeParams="get"/> <!-- Construct a new url passing the current URL as the backLink" --> <s:url id="newUrl" action="newAction"> <s:param name="backLink" value="%{currentUrl}"/> </s:url> Lets say current URL is something like http://mydomain/action1?p1=1&p2=2 The problem is that when newUrl is constructed, struts2 is escaping the '&' character in the URL. So, the backLink says p1=1 & amp ;p2=2 instead of p1=1&p2=2 (note: i put the spaces between & amp and ; just for clarity here so that this editor doesnt convert it to a '&') . This is preventing the parameter p2 from being parsed correctly when that URL is requested. Is there an escape property on s:url like the one on <s:property> ? Any workarounds? Thanks SN
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]