On 6/4/07, Dave Newton <[EMAIL PROTECTED]> wrote:
--- yitzle <[EMAIL PROTECTED]> wrote:
> How do I get the Request object?
Struts version?
S1: It's passed in to Action.execute(...)
S2: Implement ServletRequestAware
http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/interceptor/ServletRequestAware.html
I have no idea why you would want to do that in S2 if
all you're doing is accessing a request parameter, and
it's a Bad Idea if that's the only reason you need it.
I guess what I wanted was the implements ParameterAware
> Implementing RequestAware gets me a map...
> There's a sun.misc.Request object, but that doesn't
> look right...
Yeah, probably not.
Do you have any familiarity with JEE at all? Have you
looked at the S2 docs which *specifically* answer this
question?
http://struts.apache.org/2.x/docs/how-can-we-access-the-httpservletrequest.html
d.
I'm not very familiar with JEE. I've used it before, but not extensively.
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]