Re: URIEncoding

2007-07-26 Thread Frederic Bastian
Thanks for your help, that answers my question pretty well :) Caldarale, Charles R a écrit : From: Frederic Bastian [mailto:[EMAIL PROTECTED] Subject: Re: URIEncoding Could you tell me a bit more about how MBean can solve my problem ? I never used it. Tomcat creates MBeans for most of

Re: URIEncoding

2007-07-26 Thread Frederic Bastian
Caldarale, Charles R a écrit : Once again, it's available via the MBean that Tomcat creates for each element. I'm sorry i should have missed your reply. Could you tell me a bit more about how MBean can solve my problem ? I never used it. -

Re: URIEncoding

2007-07-26 Thread Frederic Bastian
Christopher Schultz a écrit : I'd agree that reading a URI is different, but not writing one. Where are you writing your URI? Into the response, I'm guessing. In fact, I'm guessing you're writing it into the response /body/, which ought to be encoded using the response's declared Content-Type (in

Re: URIEncoding

2007-07-26 Thread Frederic Bastian
Christopher Schultz a écrit : -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Frederic, Frederic Bastian wrote: Christopher Schultz a écrit : You want to do this: java.net.URLEncoder.encode(myParam, request.getCharacterEncoding()); This does not work

Re: URIEncoding

2007-07-26 Thread Frederic Bastian
Christopher Schultz a écrit : You want to do this: java.net.URLEncoder.encode(myParam, request.getCharacterEncoding()); This does not work :) request.getCharacterEncoding() is different from URIEncoding. The request character encoding determines in wich character encodig the parameters v

Re: URIEncoding

2007-07-26 Thread Frederic Bastian
Caldarale, Charles R a écrit : From: Frederic Bastian [mailto:[EMAIL PROTECTED] Subject: Re: URIEncoding Is there a way to get the value of the param URIEncoding of the Connector, so your code will work, whatever the char encoding of the Connector is ? I'm confused. If the al

Re: URIEncoding

2007-07-26 Thread Frederic Bastian
RI_DECODING_CONST)); This is all pseudo-code but I hope you see what I mean. On 7/26/07, Frederic Bastian <[EMAIL PROTECTED]> wrote: Hi Pulkit, thanks for your answer. The matter is that Tomcat won't get the correct values of the parameters in the URL. For instance : If my UR

Re: URIEncoding

2007-07-26 Thread Frederic Bastian
f: String uri_utf8 = new String (uri.getBytes("iso-8859-1"), "UTF-8"); inside the application. On 7/26/07, Frederic Bastian <[EMAIL PROTECTED]> wrote: Hi folks :) I need my URI to be in UTF-8. In server.xml, I added to the Connector the attribut : URIEncoding="UTF

URIEncoding

2007-07-26 Thread Frederic Bastian
Hi folks :) I need my URI to be in UTF-8. In server.xml, I added to the Connector the attribut : URIEncoding="UTF-8" This works well. But my question is : Is there a way to define the URIEncoding in the application itself ? For instance, you can modify the session timeout in the application