URLTag uses javax.servlet.http.HttpUtils.parseQueryString( String s ) that
is
deprecated in jdk 1.4.

from javax.servlet.http javadocs:

Deprecated. As of Java(tm) Servlet API 2.3. These methods were only
useful with the default encoding and have been moved to the request
interfaces.

Instead of doing this in URLTag.doStartTag:

params = javax.servlet.http.HttpUtils.parseQueryString(
    ((HttpServletRequest)pageContext.getRequest()).getQueryString()
);

it would be better to do this:

HttpServletRequest request = (HttpServletRequest)pageContext.getRequest();
params = (java.util.HashMap)request.getParameterMap();

I suggest this because HttpUtils.parseQueryString screws up character
encoding for me and request.getParameterMap() does not.

I have tested it with jdk1.4 and it works for me. Do you think this
change could be added to webwork?

with best wishes,
Taavi



_______________________________________________
Webwork-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webwork-user

Reply via email to