- From: Erik Bruchez <ebruchez@orbeon.com>
- Date: Mon, 19 Feb 2007 14:59:44 +0100
- To: www-forms <www-forms@w3.org>
Iņaki, We have a very simple example in JSP in our CVS (scroll past the tags...): http://cvs.forge.objectweb.org/cgi-bin/viewcvs.cgi/ops/orbeon/src/examples-jsp/flickr-search/service-search.jsp?rev=1.1&content-type=text/vnd.viewcvs-markup This example uses dom4j to read the submitted XML. BTW, I recommend you look at the eXist database instead of Xindice. This will also allow you to have your forms directly talk with the database using REST, instead of using a Java layer in the middle: http://exist.sourceforge.net/ We have examples on our web site on how to access eXist from XForms, including in our tutorial: http://www.orbeon.com/ops/doc/intro-tutorial http://www.orbeon.com/ops/xforms-bookcast/ Our Government Forms example also uses REST to directly talk to eXist: http://www.orbeon.com/ops/forms/ I hope this helps, -Erik Iņaki Salinas Bueno wrote: > Hello, > > Can someone recommend me a set of libraries that allow a servlet > receive/send XML documents from/to xforms? I have found several > libraries, but I don't know which is more adapted for what I want to do. > > I'm using xforms in client side and a servlet for xindice (DB manager) > calls in server side. > > The servlet gets the xml document from xforms and add it in the DB > correctly (I used a Xindice web application example and the tip 'Xforms > tip: Accepting XForms data in Java > <http://www-128.ibm.com/developerworks/java/library/x-xformstipjava/index.html>' > for its construction), but I don't know how can I get a XML document > from DB and put it in the response object of the servlet. > > The example of the tip works with strings, so following it for the > response I would have to take the XML document of the DB, transform it > into a string, and then send it. Cannot be the XML document sent as > application/xml without transforming it into a string? > > Maybe questions are more java related than xforms, but they are > working-with-xml related so I think that I can found help in this forum. > > Thanks > Iņaki -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/
Received on Monday, 19 February 2007 13:59:48 UTC