W3C home > Mailing lists > Public > www-forms@w3.org > February 2007

Re: sending xml response from servlet

From: Erik Bruchez <ebruchez@orbeon.com>
Date: Mon, 19 Feb 2007 14:59:44 +0100
Message-ID: <45D9AD50.9040403@orbeon.com>
To: www-forms <www-forms@w3.org>


We have a very simple example in JSP in our CVS (scroll past the tags...):


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:


We have examples on our web site on how to access eXist from XForms, 
including in our tutorial:


Our Government Forms example also uses REST to directly talk to eXist:


I hope this helps,


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
Received on Monday, 19 February 2007 13:59:48 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:37:55 UTC