The most basic idea is to use the request getInputStream method to get a stream readable by a parser. However, as Ben suggested, there are complications depending on how you sent it which may prevent this.
For example, note that if you use any request getParameter method, the servlet engine will have already read the stream and you wont be able to get it.
If you are going to post more than a line or two of your code, wrap that code in a set of UBB Code tags. Doing so will help to preserve your code's indenting, making it easier to read. If it is easier to read, more people will actaully read it and you will stand a better chance of getting help with your question. See UseCodeTags for more help with UBB code tags.
Joined: Sep 25, 2003
Thanks,below code generates the DOM object,Serializes it and sends the serialized DOM object to TestServlet.I want to know how do i recover my DOM object from Request object at the server side i mean in servlet. I tried using getInputstream() but it dint work ...please advice..thanks in advance
[list]//below 7 lines about opening a connection and building the DOM object
//below lines of codes creating root element,nodes and values
//below code creating 1st node and value
//below code creating 2nd node and value
//below code creating 3rd node and value
//Dom2string method is used to serialize and convert the DOM object to a string