Title: How can i Read XML data thru HttpRequest object
If I understand your question, one possible solution is to do something like the following in your doPost or doGet method:
 

InputStream in = request.getInputStream();
BufferedReader reader = new BufferedReader(new InputStreamReader(in));
StringBuffer sb = new StringBuffer();
String line = reader.readLine();

while (line != null) { 
    sb.append(line); 
    line = reader.readLine();
}

// now parse the contents of the string
parse.parse(new InputSource(new StringReader(sb.toString())));

Regards,

Todd G. Nist

-----Original Message-----
From: Venu Gopal [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 25, 2002 7:59 AM
To: [EMAIL PROTECTED]
Subject: How can i Read XML data thru HttpRequest object


Hi All,

I need to read XML data through HttpServletRequest object,

please anyone come accross this problems and have an solution, please.

many tanxs in adavance,

cheers,
venu

Venugopal MN
Sr.Software Engg.
ZenSutra Software Technologies Pvt. Ltd.
Suite 601, HM Geneva House
#14, Cunningham Road
Bangalore 560-052, India

Ph:+91-80-235-0481
Fax:+91-80-235-0486
Email: [EMAIL PROTECTED]

'weaving the knowledge tapestry'


Reply via email to