Accessing xforms-server-submit directly

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

Accessing xforms-server-submit directly

Jay Klehr
Hey all,
 
Question, when a form posts (not using the replace instance functionality) the user is sent to the xforms-server-submit page (or whatever you change it to in the config).  However, if I try to access that path directly, I get an OPS error ("String index out of range: 2").
 
Is there a way in the page-flow or elsewhere to gracefully handle a user hitting this url directly?
 
 
I tried adding a page in the page-flow with the path set to "/xforms-server-submit/" but that didn't have any effect, the error is thrown by oxf:/ops/xforms/xforms-server-submit.xpl (line 55, column 43).
 
Thanks,
 
Jay


--
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: Accessing xforms-server-submit directly

Henrik Pettersen
Jay,

I think what you want is this:
http://www.orbeon.com/ops/doc/reference-page-flow#internal-xml-submissions

Unfortuantely, storing all that XML in the URL makes for a very messy
address. But at least you can copy-paste the link and send it to other
people.

Hope that helps.

Henrik

On 11/1/06, Jay Klehr <[hidden email]> wrote:

>
>
> Hey all,
>
> Question, when a form posts (not using the replace instance functionality)
> the user is sent to the xforms-server-submit page (or whatever you change it
> to in the config).  However, if I try to access that path directly, I get an
> OPS error ("String index out of range: 2").
>
> Is there a way in the page-flow or elsewhere to gracefully handle a user
> hitting this url directly?
>
> www.domain.com/xforms-server-submit/
>
> I tried adding a page in the page-flow with the path set to
> "/xforms-server-submit/" but that didn't have any effect, the error is
> thrown by oxf:/ops/xforms/xforms-server-submit.xpl (line 55, column 43).
>
> Thanks,
>
> Jay
>
> --
> 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
>
>
>


--
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: Accessing xforms-server-submit directly

Erik Bruchez
Administrator
In reply to this post by Jay Klehr
Jay,

Just one preliminary question: why would people access that URL directly?

Adding a page in the page flow will not do what you want it to do, as it
will conflict with the built-in functionality associated with the URL.

One possibility would be to modify xforms-server-submit.xpl to do
something nicer if hit with anything but POST, as I don't think other
methods are used on that URL by OPS.

Another possibility would be to reduce the occurrences where OPS
actually uses that URL, and use the URL of the current page whenever
possible, as we discussed probably over a year ago already. But that's
harder to do.

-Erik

Jay Klehr wrote:

> Hey all,
>  
> Question, when a form posts (not using the replace instance
> functionality) the user is sent to the xforms-server-submit page (or
> whatever you change it to in the config).  However, if I try to access
> that path directly, I get an OPS error ("String index out of range: 2").
>  
> Is there a way in the page-flow or elsewhere to gracefully handle a user
> hitting this url directly?
>  
> www.domain.com/xforms-server-submit/
> <http://www.domain.com/xforms-server-submit/>
>  
> I tried adding a page in the page-flow with the path set to
> "/xforms-server-submit/" but that didn't have any effect, the error is
> thrown by oxf:/ops/xforms/xforms-server-submit.xpl (line 55, column 43).
>  
> Thanks,
>  
> Jay
--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/



--
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: Accessing xforms-server-submit directly

Jay Klehr
Erik,
 
We want to be able to place content sensitive ads on the page after the submit, but in order for the ads to be targeted to the content, the indexing robot needs to be able to access that page (and I want to be able to serve up the content that a user would typically see on that page, without doing a true submit).
 
Jay

________________________________

From: Erik Bruchez on behalf of Erik Bruchez
Sent: Wed 11/1/2006 7:06 AM
To: [hidden email]
Subject: Re: [ops-users] Accessing xforms-server-submit directly



Jay,

Just one preliminary question: why would people access that URL directly?

Adding a page in the page flow will not do what you want it to do, as it
will conflict with the built-in functionality associated with the URL.

One possibility would be to modify xforms-server-submit.xpl to do
something nicer if hit with anything but POST, as I don't think other
methods are used on that URL by OPS.

Another possibility would be to reduce the occurrences where OPS
actually uses that URL, and use the URL of the current page whenever
possible, as we discussed probably over a year ago already. But that's
harder to do.

-Erik

Jay Klehr wrote:

> Hey all,
>
> Question, when a form posts (not using the replace instance
> functionality) the user is sent to the xforms-server-submit page (or
> whatever you change it to in the config).  However, if I try to access
> that path directly, I get an OPS error ("String index out of range: 2").
>
> Is there a way in the page-flow or elsewhere to gracefully handle a user
> hitting this url directly?
>
> www.domain.com/xforms-server-submit/
> <http://www.domain.com/xforms-server-submit/>
>
> I tried adding a page in the page-flow with the path set to
> "/xforms-server-submit/" but that didn't have any effect, the error is
> thrown by oxf:/ops/xforms/xforms-server-submit.xpl (line 55, column 43).
>
> Thanks,
>
> Jay
--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/





--
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

winmail.dat (6K) Download Attachment