You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Christoph Strehl <ch...@epost.de> on 2003/09/19 09:00:44 UTC
JSPGen. RequestParameter Encoding
Hello again,
special characters in the request parameter in my JSP are somehow
encrypted and even using java.net.URLDecoder.decode() doesn't change
that. I tried to set the encoding to "ISO-8859-1" but it didn't work at
all. Has anyone had a similar problem yet?
I am grateful for any hint.
Christoph
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: JSPGen. RequestParameter Encoding
Posted by Joerg Heinicke <jh...@virbus.de>.
No.
What you need for the wsproxy is simply a re-encoding of the decoded
parameters.
What he needs for the JSPGenerator/Reader is simply an encoding
configuration issue. In what encoding are the pages? In what encoding do
you read the requests? Have a look at Cocoon's
SetCharacterEncodingAction or the SetCharacterEncodingFilter delivered
with Tomcat.
Joerg
Jeff Ramsdale wrote:
> Tony (& others),
>
> Is this the same problem we talked about last week on wsproxy parameter
> encoding?
> http://archives.real-time.com/pipermail/cocoon-users/2003-September/038837.h
> tml
> That thread was left hanging.
>
> Jeff
>
>
>>-----Original Message-----
>>From: Christoph Strehl [mailto:christoph.strehl@epost.de]
>>Sent: Friday, September 19, 2003 12:01 AM
>>To: users@cocoon.apache.org
>>Subject: JSPGen. RequestParameter Encoding
>>
>>
>>Hello again,
>>
>>special characters in the request parameter in my JSP are somehow
>>encrypted and even using java.net.URLDecoder.decode() doesn't change
>>that. I tried to set the encoding to "ISO-8859-1" but it didn't work at
>>all. Has anyone had a similar problem yet?
>>
>>I am grateful for any hint.
>>
>>Christoph
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: JSPGen. RequestParameter Encoding
Posted by Tony Collen <co...@umn.edu>.
Jeff Ramsdale wrote:
> Tony (& others),
>
> Is this the same problem we talked about last week on wsproxy parameter
> encoding?
> http://archives.real-time.com/pipermail/cocoon-users/2003-September/038837.h
> tml
> That thread was left hanging.
Hrm.. it seems similar, but I'm not too sure. As far as the wsproxy, goes, perhaps we can try to
track down where the spaces are being fiddled with. I would be curious to find out if the wsproxy
generator is changing the spaces or if it's coming from somewhere else.
Tony
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
RE: JSPGen. RequestParameter Encoding
Posted by Jeff Ramsdale <je...@earthlink.net>.
Thanks Tony,
I'll try to take a look at it...
Jeff
> -----Original Message-----
> From: Tony Collen [mailto:colle006@umn.edu]
> Sent: Friday, September 19, 2003 2:50 PM
> To: users@cocoon.apache.org
> Subject: Re: JSPGen. RequestParameter Encoding
>
>
> Jeff Ramsdale wrote:
> > Tony (& others),
> >
> > Is this the same problem we talked about last week on wsproxy parameter
> > encoding?
> >
> http://archives.real-time.com/pipermail/cocoon-users/2003-Septembe
> r/038837.h
> > tml
> > That thread was left hanging.
>
> Jeff,
>
> It seems the WSPG is getting decoded parameters, but is not
> re-encoding them, either properly or at
> all. I posted this possibility on -dev, and I'll see what the
> responses are.
>
> I'm going to file a bug in bugzilla for this [1], and leave it as
> unconfirmed. If you could come up
> with a simple test case (that doesn't use Amazon, for instance),
> that shows the proxy sending out
> unencoded parameters, that would help the debugging a lot.
>
>
> Regards,
>
> Tony
>
> [1] http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23283
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: JSPGen. RequestParameter Encoding
Posted by Tony Collen <co...@umn.edu>.
Jeff Ramsdale wrote:
> Tony (& others),
>
> Is this the same problem we talked about last week on wsproxy parameter
> encoding?
> http://archives.real-time.com/pipermail/cocoon-users/2003-September/038837.h
> tml
> That thread was left hanging.
Jeff,
It seems the WSPG is getting decoded parameters, but is not re-encoding them, either properly or at
all. I posted this possibility on -dev, and I'll see what the responses are.
I'm going to file a bug in bugzilla for this [1], and leave it as unconfirmed. If you could come up
with a simple test case (that doesn't use Amazon, for instance), that shows the proxy sending out
unencoded parameters, that would help the debugging a lot.
Regards,
Tony
[1] http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23283
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
RE: JSPGen. RequestParameter Encoding
Posted by Jeff Ramsdale <je...@earthlink.net>.
Tony (& others),
Is this the same problem we talked about last week on wsproxy parameter
encoding?
http://archives.real-time.com/pipermail/cocoon-users/2003-September/038837.h
tml
That thread was left hanging.
Jeff
> -----Original Message-----
> From: Christoph Strehl [mailto:christoph.strehl@epost.de]
> Sent: Friday, September 19, 2003 12:01 AM
> To: users@cocoon.apache.org
> Subject: JSPGen. RequestParameter Encoding
>
>
> Hello again,
>
> special characters in the request parameter in my JSP are somehow
> encrypted and even using java.net.URLDecoder.decode() doesn't change
> that. I tried to set the encoding to "ISO-8859-1" but it didn't work at
> all. Has anyone had a similar problem yet?
>
> I am grateful for any hint.
>
> Christoph
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: JSPGen. RequestParameter Encoding
Posted by Владимир Юрьев <vy...@rambler.ru>.
On Fri, 19 Sep 2003 09:00:44 +0200
"Christoph Strehl" <ch...@epost.de> wrote:
>Hello again,
>
>special characters in the request parameter in my JSP are somehow
>encrypted and even using java.net.URLDecoder.decode() doesn't change
>that. I tried to set the encoding to "ISO-8859-1" but it didn't work
>at
>all. Has anyone had a similar problem yet?
>
>I am grateful for any hint.
>
>Christoph
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
Hi,Christoph!
My experience small in use JSP, if you asked, how inquiry with HTML as
Parameter name = "query" to receive with the coding distinct from
ISO-8859-1, I did(made) it as follows:
myfile.jsp:
...
String requestEnc = request.getCharacterEncoding();
if( requestEnc==null ) requestEnc="ISO-8859-1";
String clientEnc = request.getParameter("charset");
if( clientEnc==null ) clientEnc="Cp1251";
String queryString = new
String(request.getParameter("query").getBytes(requestEnc),clientEnc);
...
Vladimir Yuryev.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org