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

sending xml response from servlet

From: Iņaki Salinas Bueno <inksalinas@gmail.com>
Date: Fri, 16 Feb 2007 17:31:29 +0100
Message-ID: <cd3c31800702160831l5ddc978dkd77a2d89dc21666b@mail.gmail.com>
To: www-forms <www-forms@w3.org>
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
Received on Friday, 16 February 2007 16:31:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:09 GMT