>
> 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
: 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
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
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
: 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
: 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
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
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
;
>
>
> 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
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:
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
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
/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
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
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
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
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
.
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
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
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
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
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]>
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
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
--- 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
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 ?
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
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 ?
-
28 matches
Mail list logo