Re: struts 2 Intercepter ServletRequestAware

2013-05-23 Thread Chris Pratt
> > tks in advance > > john > > -- > *From:* Chris Pratt > *To:* Struts Users Mailing List ; john lee < > sh_thorn_b...@yahoo.com> > *Sent:* Thursday, May 23, 2013 6:25 PM > *Subject:* Re: struts 2 Intercepter ServletRequestAware > > Servle

Re: struts 2 Intercepter ServletRequestAware

2013-05-23 Thread john lee
: struts 2 Intercepter ServletRequestAware ServletActionContext.getRequest().getCookies()   (*Chris*) On Thu, May 23, 2013 at 4:20 PM, john lee wrote: > >thanks, > >so, how can I access Cookie in the interceptor? as my knowledge, to access >cookie, i have to get Servlet

Re: struts 2 Intercepter ServletRequestAware

2013-05-23 Thread john lee
ntercepter ServletRequestAware You need to access the request directly. But why do you want to use a cookie in an interceptor? Sent via BlackBerry from T-Mobile -Original Message- From: john lee Date: Thu, 23 May 2013 16:20:08 To: Struts Users Mailing List Reply-To: "Struts Use

Re: struts 2 Intercepter ServletRequestAware

2013-05-23 Thread Chris Pratt
en access > Cookie.. > > please advise > > > > john > > > From: Chris Pratt > To: Struts Users Mailing List ; john lee < > sh_thorn_b...@yahoo.com> > Sent: Thursday, May 23, 2013 5:02 PM > Subject: Re: struts 2 Intercept

Re: struts 2 Intercepter ServletRequestAware

2013-05-23 Thread jlmagc
: struts 2 Intercepter ServletRequestAware thanks, so, how can I access Cookie in the interceptor? as my knowledge, to access cookie, i have to get Servlet first, then get Request object, then access Cookie.. please advise  john From: Chris Pratt To: St

Re: struts 2 Intercepter ServletRequestAware

2013-05-23 Thread john lee
: Thursday, May 23, 2013 5:02 PM Subject: Re: struts 2 Intercepter ServletRequestAware You cannot use ServletRequestAware or ServletResponseAware in an Interceptor.   (*Chris*) On Thu, May 23, 2013 at 2:58 PM, john lee wrote: > please explain more, thanks in adva

Re: struts 2 Intercepter ServletRequestAware

2013-05-23 Thread Chris Pratt
You cannot use ServletRequestAware or ServletResponseAware in an Interceptor. (*Chris*) On Thu, May 23, 2013 at 2:58 PM, john lee wrote: > please explain more, thanks in advance > > > > From: Dave Newton > To: Struts Users Mailing List

Re: struts 2 Intercepter ServletRequestAware

2013-05-23 Thread john lee
please explain more, thanks in advance  From: Dave Newton To: Struts Users Mailing List Sent: Thursday, May 23, 2013 4:53 PM Subject: Re: struts 2 Intercepter ServletRequestAware You may have misunderstood what I said. those interfaces are for actions

Re: struts 2 Intercepter ServletRequestAware

2013-05-23 Thread Dave Newton
; > > > From: Dave Newton > To: Struts Users Mailing List > Sent: Thursday, May 23, 2013 4:31 PM > Subject: Re: struts 2 Intercepter ServletRequestAware > > > That interface is for actions, not interceptors. > On May 23, 2013 5:30 PM

Re: struts 2 Intercepter ServletRequestAware

2013-05-23 Thread john lee
                            From: Dave Newton To: Struts Users Mailing List Sent: Thursday, May 23, 2013 4:31 PM Subject: Re: struts 2 Intercepter ServletRequestAware That interface is for actions, not interceptors. On May 23, 2013 5:30 PM, "john lee" wrote:

Re: struts 2 Intercepter ServletRequestAware

2013-05-23 Thread Dave Newton
yVerifySessionIntercepter, i implement the > ServletRequestAware, but get null catached. > > my question is: > > for intercepter, Request object can not be implemented? if can, why i get > null? > > thanks in advance > > john > > > > public class Sec

struts 2 Intercepter ServletRequestAware

2013-05-23 Thread john lee
Please advise the following for struts2, for an login action, an predefined interceptor is triggered for checking cookie , the code is the following for  SecurityVerifySessionIntercepter, i implement the ServletRequestAware, but get null catached. my question is: for intercepter, Request

Re: ServletRequestAware interface

2009-01-13 Thread Musachy Barroso
/nod On Tue, Jan 13, 2009 at 4:14 PM, Dave Newton wrote: > Andy wrote: >> >> Your first point makes total sense. [...] >> The second point also makes sense. [...] > > That's like the most sense I've ever made in one day ever. > > Makes me wonder if it was really me that sent the message. > > Dave

Re: ServletRequestAware interface

2009-01-13 Thread Dave Newton
Andy wrote: Your first point makes total sense. [...] The second point also makes sense. [...] That's like the most sense I've ever made in one day ever. Makes me wonder if it was really me that sent the message. Dave - To

RE: ServletRequestAware interface

2009-01-13 Thread Andy
uts.apache.org > Subject: Re: ServletRequestAware interface > > Andy wrote: > > Having my s2 action classes implement ServletRequestAware works great > > for getting request parameters. > > It's not necessary, though, as S2 will set request parameters into > acti

Re: ServletRequestAware interface

2009-01-13 Thread Dave Newton
Andy wrote: Having my s2 action classes implement ServletRequestAware works great > for getting request parameters. It's not necessary, though, as S2 will set request parameters into action properties (a) without the overhead of getting the request parameters manually, and (b) witho

ServletRequestAware interface

2009-01-13 Thread Andy
Having my s2 action classes implement ServletRequestAware works great for getting request parameters. However it doesn't look like non-action classes can implement this interface to get the parameters. Since I offload my action class execute() processing to a service class (which is inj

Re: Does Execute and Wait Interceptor work with ServletRequestAware interface?

2008-05-06 Thread Laurie Harper
. Documentation says that when using ExecAndWait I need to implement SessionAware interface and access my session via the sessionMap. However, the only way I can get the request headers and the sessionID is by implementing ServletRequestAware, getting the request object first, and then getting the real

Does Execute and Wait Interceptor work with ServletRequestAware interface?

2008-05-06 Thread mojoRising
when using ExecAndWait I need to implement SessionAware interface and access my session via the sessionMap. However, the only way I can get the request headers and the sessionID is by implementing ServletRequestAware, getting the request object first, and then getting the real HTTPSession from there

Re: ServletRequestAware

2007-09-04 Thread Zarar Siddiqi
Try this guy: http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/ServletActionContext.html stanlick wrote: > > I have an action that determines the requester IP address. The action > implements ServletRequestAware, but I don't like it being all tangled up &g

Re: ServletRequestAware

2007-09-03 Thread vamsi
why can't u get request object from ServletContext? - Original Message - From: "Alvaro Sanchez-Mariscal" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, September 03, 2007 6:53 AM Subject: Re: ServletRequestAware As far as

Re: ServletRequestAware

2007-09-02 Thread Alvaro Sanchez-Mariscal
As far as I know, the only way is asking HttpServletRequest, and thus, implementing ServletRequestAware. If you want to keep HttpServletRequest code out of your actions, consider implementing an interceptor, or even a raw servlet filter. Alvaro. On 9/3/07, stanlick <[EMAIL PROTECTED]>

ServletRequestAware

2007-09-02 Thread stanlick
I have an action that determines the requester IP address. The action implements ServletRequestAware, but I don't like it being all tangled up in the Servlet API. Is there a way to get the IP address another way. The RequestAware interface seems to map to only request attributes. Than

Re: intercept return, and Interceptor implementing ServletRequestAware

2007-04-15 Thread Mansour
Dave Newton wrote: --- Mansour <[EMAIL PROTECTED]> wrote: What's the point then of having an action, if the intercept method is going to execute the action. Why don't I just put the action code in an interceptor ? Because interceptors are normally called for *groups* of acti

Re: intercept return, and Interceptor implementing ServletRequestAware

2007-04-15 Thread Dave Newton
--- Mansour <[EMAIL PROTECTED]> wrote: > What's the point then of having an action, if the > intercept method is going to execute the action. Why > don't I just put the action code in an interceptor ? Because interceptors are normally called for *groups* of actions, not just one... just like it s

Re: intercept return, and Interceptor implementing ServletRequestAware

2007-04-15 Thread Mansour
Musachy Barroso wrote: http://struts.apache.org/2.x/docs/interceptors.html http://struts.apache.org/2.x/docs/writing-interceptors.html What 's the point then of having an action, if the intercept method is going to execute the action. Why don't I just put the action code in an interceptor ?

Re: intercept return, and Interceptor implementing ServletRequestAware

2007-04-15 Thread Musachy Barroso
http://struts.apache.org/2.x/docs/interceptors.html http://struts.apache.org/2.x/docs/writing-interceptors.html On 4/15/07, Mansour <[EMAIL PROTECTED]> wrote: I can not figure out how to configure an interceptor. What does the returned string represents ? I mean if I have an action that has o

intercept return, and Interceptor implementing ServletRequestAware

2007-04-15 Thread Mansour
I can not figure out how to configure an interceptor. What does the returned string represents ? I mean if I have an action that has one or more interceptors, how would the returned string of the interceptor affects the execution of this action ? Any examples ? -