struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Re: Retrieving HTTP query string
Date Mon, 04 Jun 2007 18:00:59 GMT
--- yitzle <yitzle@users.sourceforge.net> 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.

> 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.



       
____________________________________________________________________________________
Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories
at Yahoo! Games.
http://sims.yahoo.com/  

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message