Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending info from jsp page to servlet as xml

Status
Not open for further replies.

sarahnice

Technical User
Nov 18, 2002
101
IE
I have a jsp page with a form on it. The jsp code bundles the inputted data as an XML Document object. Could anyone tell me how to send this xml Document object to a servlet.

Thanks
:)
 
try this and see if it works.
(i'm assuming your jsp POST the FORM to the servlet.)

1. use the serializer to convert the xml document into a string
2. put this string as a hidden field within the form
3. at the servlet DOPOST, convert it back to xml document using the document's parse method.

i've forgotten where to download the serializer, u will need to check with the other experts here.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top