Hi,

I just had a look at the WW2 URL tag and then looked back at this discussion.
The reason for the HttpUtils parseQuery etc, I think was that the URL tag was changed 
to only include the GET parameters rather than all parameters (including posted ones) 
that you retrieve with the getParameterMap method. This default behaviour was changed 
for 1.3 (by Rickard I believe). And I guess that when doing so it was also needed to 
handle the # specially. I'm about to commit a change for 1.3 which allows the tag to 
work both ways, include all or only get parameters. This is needed for backwards 
compatibility reasons.

So right now it looks like the WW2 version works like the old WW1.2.1 version which 
always included all parameters.

Best regards,

Dick Zetterberg
[EMAIL PROTECTED]

----- Original Message ----- 
From: "Jason Carreira" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 26, 2003 12:29 AM
Subject: [OS-webwork] URL tag submitted


> Rick added a URLTag implementation as an attachment on Jira that was
> developed by Brock Bulger.. I'm wondering what this part is doing, and
> why it is necessary?
> 
>                 HttpServletRequest req = (HttpServletRequest)
> pageContext.getRequest();
>                 String query = req.getQueryString();
> 
>                 if (query != null) {
>                     int idx = query.lastIndexOf('#');
> 
>                     if (idx != -1) {
>                         query = query.substring(0, idx - 1);
>                     }
> 
>                     params.putAll(HttpUtils.parseQueryString(query));
>                 }
> 
> Why do we need to chop the query string at '#'? The reason I noticed
> this is that HttpUtils is deprecated. You can get a map of params from
> the HttpServletRequest using getParameterMap(), but I'm wondering if
> that's a problem considering the above?
> 
> Thanks,
> 
> Jason
> 



-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to