Re: Reading input stream (xml)

2010-07-30 Thread Arun Kumar Boppudi
to struts. I prefer the first approach which is the easiest and does no harm. - Rahul From: Arun Kumar Boppudi arunkumar.bopp...@gmail.com To: Struts Users Mailing List user@struts.apache.org Date: 30-07-2010 09:49 Subject: Re: Reading input stream (xml) There is no form and I am

Re: Reading input stream (xml)

2010-07-30 Thread Rahul Mohan
@struts.apache.org Date: 30-07-2010 13:48 Subject: Re: Reading input stream (xml) Unfortunately, I have to use XML here. So, I cannot use the first suggestion. If I use request.getInputStream, subsequent request.getParameter calls will fail. Will it cause any problems in struts? I would like

Re: Reading input stream (xml)

2010-07-30 Thread Arun Kumar Boppudi
will take care of getting the content, and also you don't have to worry about encoding the xml. From: Arun Kumar Boppudi arunkumar.bopp...@gmail.com To: Struts Users Mailing List user@struts.apache.org Date: 30-07-2010 13:48 Subject: Re: Reading input stream (xml) Unfortunately, I

RE: Reading input stream (xml)

2010-07-30 Thread adam pinder
your action could implement ServletRequestAware then it has access to the full request including posted content. adam From: arunkumar.bopp...@gmail.com Date: Fri, 30 Jul 2010 15:31:15 +0530 Subject: Re: Reading input stream (xml) To: user@struts.apache.org Request

Re: Reading input stream (xml)

2010-07-30 Thread Arun Kumar Boppudi
...@gmail.com Date: Fri, 30 Jul 2010 15:31:15 +0530 Subject: Re: Reading input stream (xml) To: user@struts.apache.org Request to this controller comes from other applications, only in XML format. So, I cannot expect multi-part. -- AB On Fri, Jul 30, 2010 at 2:38 PM, Rahul Mohan

Re: Reading input stream (xml)

2010-07-29 Thread Arun Kumar Boppudi
10:32 Subject: Re: Reading input stream (xml) Actually, I am not uploading a file. I am creating XML from the data entered into the form and sending it to the action controller in the POST request body. In the action controller, I would like to parse the XML. How to do it in Struts 1.3

Re: Reading input stream (xml)

2010-07-29 Thread Rahul Mohan
List user@struts.apache.org Date: 29-07-2010 13:34 Subject: Re: Reading input stream (xml) Rahul, I am not sending XML content as part of the query string, only XML content will be sent in the request body. As struts framework uses the getParameter to populate data into the form beans before

Re: Reading input stream (xml)

2010-07-29 Thread Arun Kumar Boppudi
Users Mailing List user@struts.apache.org Date: 29-07-2010 13:34 Subject: Re: Reading input stream (xml) Rahul, I am not sending XML content as part of the query string, only XML content will be sent in the request body. As struts framework uses the getParameter to populate data

Re: Reading input stream (xml)

2010-07-29 Thread Rahul Mohan
using firebug to see if it is being posted. From: Arun Kumar Boppudi arunkumar.bopp...@gmail.com To: Struts Users Mailing List user@struts.apache.org Date: 29-07-2010 14:58 Subject: Re: Reading input stream (xml) I think we should use the query string format to use the string in action form class

Re: Reading input stream (xml)

2010-07-29 Thread Arun Kumar Boppudi
arunkumar.bopp...@gmail.com To: Struts Users Mailing List user@struts.apache.org Date: 29-07-2010 13:34 Subject: Re: Reading input stream (xml) Rahul, I am not sending XML content as part of the query string, only XML content will be sent in the request body. As struts framework

Re: Reading input stream (xml)

2010-07-29 Thread Rahul Mohan
user@struts.apache.org Date: 30-07-2010 09:49 Subject: Re: Reading input stream (xml) There is no form and I am sending XML content to the action controller using Fiddler. And data sent is not in the format of query string. (not in the format: paramname=*xml_content*). So, struts may

Reading input stream (xml)

2010-07-28 Thread Arun Kumar Boppudi
If we send XML content in the POST/PUT request to Struts action controller, how to read this content in the Action class? -- AB

Re: Reading input stream (xml)

2010-07-28 Thread Rahul Mohan
Doesn't this link (http://struts.apache.org/2.0.14/docs/file-upload.html) help you? From: Arun Kumar Boppudi arunkumar.bopp...@gmail.com To: Struts Users Mailing List user@struts.apache.org Date: 28-07-2010 22:09 Subject: Reading input stream (xml) If we send XML content in the POST/PUT

Re: Reading input stream (xml)

2010-07-28 Thread Arun Kumar Boppudi
AM, Rahul Mohan rahul.mo...@tcs.com wrote: Doesn't this link (http://struts.apache.org/2.0.14/docs/file-upload.html) help you? From: Arun Kumar Boppudi arunkumar.bopp...@gmail.com To: Struts Users Mailing List user@struts.apache.org Date: 28-07-2010 22:09 Subject: Reading input stream

Re: Reading input stream (xml)

2010-07-28 Thread Rahul Mohan
for this requirement. - Rahul Mohan From: Arun Kumar Boppudi arunkumar.bopp...@gmail.com To: Struts Users Mailing List user@struts.apache.org Date: 29-07-2010 10:32 Subject: Re: Reading input stream (xml) Actually, I am not uploading a file. I am creating XML from the data entered into the form