submit outside tomcat

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

submit outside tomcat

stefan.van.de.kaa
Hello,

when I create a Xform and i submit it to an XPL file to save it to an XML file, is it possible to redirect from that XPL to a page outside the tomcat environment or not?  Or can I submit it to an other page (PHP) to the apache HTTP server so I can process the instance with PHP?

Thanks Stefan



--
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: submit outside tomcat

Erik Bruchez
Administrator
Stefan,

1. To perform a redirection, you can use the oxf:redirect processor.

     http://www.orbeon.com/ops/doc/processors-other#RedirectProcessor

     If the redirection URL is an absolute path (e.g. "/hello) then it
     is interpreted as a path relative to the OPS Servlet context
     (i.e. if your OPS WAR file is under "/ops, then the resulting path
     is "/ops/hello). For other purposes, including redirecting to a
     path within the same Servlet container but outside the OPS WAR
     context, you have to use an absolute URL complete with scheme and
     host name.

     I just added the above to the doc. Granted, the fact that the
     configuration element is called "path-info" but supports absolute
     URLs is a little confusing.

2. You can use an action="http://example.org/your/submission/path" on
    your XForms submission. In that case you have to use an absolute
    URL, as relative paths currently are adjusted to mean "a path
    relative to the OPS Servlet context", as in #1 above.

Let us know if this helps.

-Erik

[hidden email] wrote:
 > Hello,
 >
 > when I create a Xform and i submit it to an XPL file to save it to
 > an XML file, is it possible to redirect from that XPL to a page
 > outside the tomcat environment or not?  Or can I submit it to an
 > other page (PHP) to the apache HTTP server so I can process the
 > instance with PHP?
 >
 > Thanks Stefan




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