A good struts-y way to do it would be to create a converter that can convert the xml to an instance of your business object, maybe using xstream or jixb. Then set a field on your action of the said business type an configure the converter for that action.
-Wes On 9/20/09, Tommy Pham <tommy...@yahoo.com> wrote: > ----- Original Message ---- >> From: indikamaligaspe <ind...@rezgateway.com> >> To: user@struts.apache.org >> Sent: Friday, September 18, 2009 10:53:48 AM >> Subject: How to read an XML request from struts >> >> >> Hi, >> >> I have situation where some users will be posting an XML message (using a >> java client) and some HTML forms to my application running in struts. I >> want >> to know if there is a way that I can recognize the two different requests >> from my struts acton class. >> >> Because once I identify the two, I can always handle the two requests >> seperately with my request handlers, the problem is identifying the two >> requests seperately. >> >> Thanks >> Indi >> -- >> View this message in context: >> http://www.nabble.com/How-to-read-an-XML-request-from-struts-tp25512907p25512907.html >> Sent from the Struts - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org > > getContentType() from org.apache.struts2.dispatcher.StreamResult ? > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- Wes Wannemacher Head Engineer, WanTii, Inc. Need Training? Struts, Spring, Maven, Tomcat... Ask me for a quote! --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org