Link to home
Start Free TrialLog in
Avatar of piou
piouFlag for Greece

asked on

Regarding the deprecated javax.servlet.http.HttpUtils class

The API docs say:

javax.servlet.http.HttpUtils
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.

I am pretty sure there's nothing in the HttpServletRequest interface, nor in the ServletRequest.

Am I wrong? How can you _parse_ the query string? (I use 1.4.0 SE & 1.3.0 EE)

Avatar of girionis
girionis
Flag of Greece image

>  How can you _parse_ the query string?

  Use request.getParameter("parameter");
 If you are talking about getting the whole query use:

  request.getQueryString();

  or an Enumeration to get all the parameters:

  Enumeraiton enum = request.getParameterNames();
Avatar of piou

ASKER

Oh! I thought the getParameter() was only for form data included in the response. You say that the same method parses the query string?!
ASKER CERTIFIED SOLUTION
Avatar of girionis
girionis
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial