Hi
Since getting hold of struts 1.1 RC2 I have been getting a problem with
the rewrite tag generating a url with the context root in twice.
I have seen that this error has been raised as an error under
http://issues.apache.org/bugzilla/show_bug.cgi?id=20835
upon looking at the code I have noticed that the class RewriteTag.java
has been changed between RC1 and RC2 to in clued the following
// Note that we're encoding the & character to & in
XHTML mode only,
// otherwise the & is written as is to work in javascripts.
url =
RequestUtils.computeURL(
pageContext,
forward,
href,
page,
null,
params,
anchor,
!this.isXhtml());
My question is why is the isXhtml() value being passed as the redirect
parameter to computeURL, as this does not make sense, what has
redirecting the URL got to do with the encoding any & characters. And if
it is so important to do this then why was the same code not included in
the LinkTag which is still passing the redirect parameter as false.
Regards
David Wilkinson