users@grizzly.java.net

Re: servletAdapter question

From: Hubert Iwaniuk <neotyk_at_kungfoo.pl>
Date: Wed, 11 Mar 2009 16:50:21 +0100

Hi,
Value gets trunkated just before & witch is delimiter for parameters.
Try using other symbol or url encode before sending.
HTH,
Hubert.

-original message-
Subject: Re: servletAdapter question
From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: 11-03-2009 16:31

Salut,

Richard Corsale wrote:
> Hi All!
>
> so, heres something interesting, when I send an & to a servlet in the servlet adapter, the param gets truncated. Ive read elsewhere that theres a setting for this, and I do have sa.addInitParameter("default-encoding", "UTF-8"); but no matter what, I get have this problem. Does anyone know how to address this?
>
> example
> 1. I send this: command={"response":"success","messagetext":"success1 & success2","command":"chanel.subscribe"}
> 2. when I call request.getParameterValues("command"); I end up with: {"response":"success","messagetext":"success1
>
> so its taking this ampersand litteraly and using it to seperate params in the post header... it's simple Im sure but its driving me crazzy :(
>

Can you file an issue with a test case and your Servlet? I will add a
unit test but right now manual testing don't show the issue you report.

Thanks!

-- Jeanfrancois

--Richard
>
>
>
>
> ----- Original Message ----
> From: Richard Corsale <igf1_at_yahoo.com>
> To: users_at_grizzly.dev.java.net
> Sent: Monday, March 9, 2009 8:01:16 PM
> Subject: OnInturupt issue
>
>
> Hi all, I was just wondering where we were on the onInturupt issue? I seem to have narrowed the problem down to it ocurring within an XMLHttpRequest() object, it seems that even after the connection has been aborted and readystate=4 , the server just keeps on chugging witout an onInterupt ? anyone else having this issue?
>
>
> --Richard
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
For additional commands, e-mail: users-help_at_grizzly.dev.java.net