Hi all, I need to save form data to an Oracle XMLType column. To do that, I'd like to submit to a Java servlet or JSP (I'm not sure at this point what data I can grab from this submission either, but I guess I'll deal with that later). I have been reading through the archive on nabble and Alessandro Vernet suggested either using SQL processor (which I tried, but this approach was messy) or POSTing to a service in another language (in my case, Java).
I have modified the xforms-hello example to POST to a JSP in another web application using xforms:submission with replace="all", but I don't see anything in the request or session. How am I supposed to pass the instance information (and the whole page itself, perhaps?) to a service in another language? |
Administrator
|
The XForms submission, as used most commonly, performs an HTTP POST of
an XML document. It is up to you, in your JSP or Servlet, to access the POSTed data from the request body and to parse it (as it will likely be XML). This is not done automatically by your servlet container so you won't magically find parsed XML in the request or session. The good news is that it is just one line of code to do this in Java with the dom4j API: Document queryDocument = xmlReader.read(request.getInputStream()); Check the attached example which implements a simple service in JSP. -Erik On Jan 29, 2008, at 3:10 PM, fitek wrote: > > Hi all, I need to save form data to an Oracle XMLType column. To do > that, > I'd like to submit to a Java servlet or JSP (I'm not sure at this > point what > data I can grab from this submission either, but I guess I'll deal > with that > later). I have been reading through the archive on nabble and > Alessandro > Vernet suggested either using SQL processor (which I tried, but this > approach was messy) or POSTing to a service in another language (in > my case, > Java). > > I have modified the xforms-hello example to POST to a JSP in another > web > application using xforms:submission with replace="all", but I don't > see > anything in the request or session. How am I supposed to pass the > instance > information (and the whole page itself, perhaps?) to a service in > another > language? > -- > View this message in context: http://www.nabble.com/Submitting-Form-to-an-External-Java-servlet-or-JSP-tp15149781p15149781.html > Sent from the ObjectWeb OPS - Users mailing list archive at > Nabble.com. 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 service-search.jsp (2K) Download Attachment |
Free forum by Nabble | Edit this page |