Re: [OT] JSP parameter frustration

Eric Carlson <[email protected]> Wed, 05 Jul 2006 20:52:01 +0100
Newsgroups gmane.text.xml.resin.user
Organization Gazin' at the stars...
Message-ID <[email protected]>
On Wed, 5 Jul 2006 14:16:43 -0400, you wrote:

>The servlet container is responsible for decoding the parameters for =20
>you before it sets them into the HttpServletRequest object, so don't =20
>double-decode it.
>
>Tony

Thanks. If I undersand you, thats means I should use this

String param =3D request.getParameter("p");
byte[] paramArray =3D param.getBytes();
for (int i =3D0; i<param.length(); i++) {
 System.out.print(paramArray[i]);
}

(Which I actually started with) - but it still gives the wrong values.