hi friends,
I've a client(Swing) formed an XML(using DOM) and sent it to
servlet .How do i extract my DOM object from the HttpRequest Object ???
below is the piece of code which converts document object to
string before sending to servlet
public static String convertDOM2String(Document document){
StringWriter writer=null;
try{
writer = new StringWriter();
(new XMLSerializer(writer, new OutputFormat())).serialize(document);
}
catch(Exception e)
{
System.out.println("prasha");
e.printStackTrace();
}
return writer.toString();
}
Can some one help me in this regard.Thanks in advance
thanks and regards
Prashanth