URL parameter separator used by setvalue in PFC

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

URL parameter separator used by setvalue in PFC

Mark Gibson-2
Hello again,

XForms seems to serialize URL params using ';' as the default separator,
I know this can be changed using separator on the <xforms:submission>
element.

But, <setvalue> in the PFC only seems to recognise '&' as a separator,
is there a way to configure this to also allow ';', so that we don't
have to supply separator="&" on every <xforms:submission> element?

Cheers
- Mark Gibson



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: URL parameter separator used by setvalue in PFC

Erik Bruchez
Administrator
[hidden email] wrote:
> Hello again,
>
> XForms seems to serialize URL params using ';' as the default separator,
> I know this can be changed using separator on the <xforms:submission>
> element.
>
> But, <setvalue> in the PFC only seems to recognise '&' as a separator,
> is there a way to configure this to also allow ';', so that we don't
> have to supply separator="&" on every <xforms:submission> element?

Mark, the PFC doesn't use "&" itself: it just asks the Servlet container
for the parameters that have been submitted.

For what it's worth, while using "&" as a separator is *not* specified
by "RFC 2396 - Uniform Resource Identifiers (URI): Generic Syntax", it
is specified by HTML:

   http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.13.4.1

The important part:

   "application/x-www-form-urlencoded [...] name/value pairs are
    separated from each other by `&'."

XForms introduces a variation of HTML's
application/x-www-form-urlencoded which allows you to specify the
separator. However, the Java Servlet API, based on the HTML tradition,
still uses "&".

OPS could do the decoding of the search string itself, but currently it
does not do so.

-Erik



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws