piou
asked on
Regarding the deprecated javax.servlet.http.HttpUtils class
The API docs say:
javax.servlet.http.HttpUti ls
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)
javax.servlet.http.HttpUti
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)
If you are talking about getting the whole query use:
request.getQueryString();
or an Enumeration to get all the parameters:
Enumeraiton enum = request.getParameterNames( );
request.getQueryString();
or an Enumeration to get all the parameters:
Enumeraiton enum = request.getParameterNames(
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Use request.getParameter("para