You will want to use a custom interceptor stack that does not include the
ParametersInterceptor.
I would start with a copy of the defaultStack (see [1]) and remove any
interceptors you don't need (which will be most of them). You will probably
want to keep the servletConfig interceptor [2] and implement
ServletRequestAware in your action to get the HttpServletRequest.

[1] http://struts.apache.org/2.1.6/docs/struts-defaultxml.html
[2]
http://struts.apache.org/2.1.6/struts2-core/apidocs/org/apache/struts2/interceptor/ServletConfigInterceptor.html

P.S. You can usually ignore anything that Martin Gainty writes. (Wasn't
someone going to ban him already.)


On Mon, Aug 24, 2009 at 7:17 PM, John Cartwright <john.c.cartwri...@noaa.gov
> wrote:

> Hello All,
>
> I'm trying to read the body of a POST, e.g. XML content, w/in an
> Action.  Problem seems to be protecting it from the
> ParametersInterceptor so that the body of the request is not treated as
> key-value pairs.
>
> Can someone please help me with this?
>
> Thanks!
>
> --john
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

Reply via email to