struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jens Viebig" <js...@gmx.de>
Subject Bug in RequestUtils ?
Date Mon, 01 Jul 2002 11:31:51 GMT
When i do a <html:rewrite> apersands (&) between request parameters always
show up as &amp;
For example if i write:
<html:rewrite page='myapp/myaction.do?some=parameter' paramId='other'
paramName='otherbean'/>

I get '
http://www.myserver.com/myapp/myaction.do?some=parameter&amp;other=value '
as result.

Links encoded like that, does not work with Netscape, for Example. Netscape
says parameters are 'some' and 'amp;other'. I think &amp; is only a
placeholder to DISPLAY a &-sign on a HTML page, but not to code an URL.

I think it should be:
' http://www.myserver.com/myapp/myaction.do?some=parameter&other=value '

I think it is a bug in RequestUtils and all lines coded as
   url.append("&amp;");
should read

   url.append("&");

Because it seems the Author wanted to have this behaviour I'm a little bit
confused if it's a bug in Struts (or in Netscape?)  or  I'm doing something
wrong.

Jens Viebig



--
To unsubscribe, e-mail:   <mailto:struts-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-dev-help@jakarta.apache.org>


Mime
View raw message