users@tomcat.apache.org'
Betreff: How to suppress implicit conversions when spliiting up the query
string into parameters
Hi world.
Weve severe problems if a URL contains an umlaut. For URL usage we encode
strings using UTF-8, i.e. ü (which would be ü in HTML) can be viewed
as %c3%bc. G
On 6/29/06, KHZ (SAW) <[EMAIL PROTECTED]> wrote:
We've severe problems if a URL contains an umlaut. For URL usage we encode
strings using UTF-8, i.e. "ü" (which would be ü in HTML) can be viewed
as "%c3%bc". Getting the request parameter I'ld expect the same string. But
we see 2 characters. Obvi
so we see
ü. Its obviously p.i.t.ar. to convert such a thing directly to ü.
As a workaround we split the query string ourselves (Java) and store it in a
hash map. Using these data we can apply the decoding using UTF-8. There it
works good. But the application is big. So we want to remove
Yes.
Try the HttpServletRequest.getRequestURI() and
HttpServletRequest.getQueryString() or something like
that.
--On Thursday, October 13, 2005 11:15 PM +1000 Kyle <[EMAIL PROTECTED]> wrote:
Aren't these just ServletRequest parameters, so request.getParameter(string)
should do it shouldn't it
The solution proposed by David is convenient in some cases, but if my
servlet makes a forwarding to a .jsp then it doesn't work.
cristi
Hello all
If a client makes the following request to a servlet container :
http://localhost:8080/cont/admin/page.jsp?doc=1002003&id=ZTJ006P1005
is it poss
EMAIL PROTECTED]
Sent: Thursday, October 13, 2005 9:16 AM
To: Tomcat Users List
Subject: Re: The query string
Aren't these just ServletRequest parameters, so
request.getParameter(string) should do it shouldn't it?
cristi wrote:
>
> Hello all
>
>
> If a client makes the
Aren't these just ServletRequest parameters, so
request.getParameter(string) should do it shouldn't it?
cristi wrote:
Hello all
If a client makes the following request to a servlet container :
http://localhost:8080/cont/admin/page.jsp?doc=1002003&id=ZTJ006P1005
is it possible to have acce
cristi a écrit :
>
> Hello all
>
>
> If a client makes the following request to a servlet container :
>
> http://localhost:8080/cont/admin/page.jsp?doc=1002003&id=ZTJ006P1005
>
> is it possible to have access to this string directly ?
I am not sure. The best i know about is:
request.getRequestUR
Hello all
If a client makes the following request to a servlet container :
http://localhost:8080/cont/admin/page.jsp?doc=1002003&id=ZTJ006P1005
is it possible to have access to this string directly ?
Thx
Cristi
-
To uns