HTTP POST or GET behavior

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

HTTP POST or GET behavior

Paedagogus
I'm testing (playing with) the latest nightly build, and the new form builder. What follows, is the result of an XForms submission similar to:

    <xforms:submission
        id="my-submission"
        resource="http://localhost:8888/my-war/echo" 
        method="get" [... and all the other attributes] />

When doing an HTTP POST or GET using this data:

    <x><y>y</y><z>z</z></x>

I end up with this result:

    parameter name='y' and a value of 'y;z=z' (note the semicolon)

instead of:

    parameter name of 'y' and a value of 'y'
    parameter name of 'z' and a value of 'z'

Since 'z' is a second element, I expected the query string to be '?y=y&z=z', not '?y=y;z=z'. When you write a servlet to receive the data, it throws off all the getParameterXXX() methods. Am I missing something, or is this a bug?


Reply | Threaded
Open this post in threaded view
|

Re: HTTP POST or GET behavior

Erik Bruchez
Administrator
It is not that the parameter value is "y;z=z", it's just that the  
parameter separator is ";" instead of "&".

You can specify separator="&amp;" on xforms:submission to override  
this. But are you saying you are seeing this in code produced by Form  
Builder?

-Erik

On Jun 11, 2008, at 9:09 AM, Paedagogus wrote:

>
> I'm testing (playing with) the latest nightly build, and the new form
> builder. What follows, is the result of an XForms submission similar  
> to:
>
>    <xforms:submission
>        id="my-submission"
>        resource="http://localhost:8888/my-war/echo"
>        method="get" [... and all the other attributes] />
>
> When doing an HTTP POST or GET using this data:
>
>    <x><y>y</y><z>z</z></x>
>
> I end up with this result:
>
>    parameter name='y' and a value of 'y;z=z' (note the semicolon)
>
> instead of:
>
>    parameter name of 'y' and a value of 'y'
>    parameter name of 'z' and a value of 'z'
>
> Since 'z' is a second element, I expected the query string to be '?
> y=y&z=z',
> not '?y=y;z=z'. When you write a servlet to receive the data, it  
> throws off
> all the getParameterXXX() methods. Am I missing something, or is  
> this a bug?
>
>
>
> --
> View this message in context: http://www.nabble.com/HTTP-POST-or-GET-behavior-tp17771386p17771386.html
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws