Re: struts2 Intercepter Actioncontext

2013-05-24 Thread cantalou89
In the Intercepter , you can try WebApplicationContext context = WebApplicationContextUtils.getRequiredWebApplicationContext(request.getServletConfig.getServletContext()); after you get request. cantalou89 From: john lee Date: 2013-05-25 03:17 To: struts support Subject: struts2 Intercepter

Re: struts2 Intercepter Actioncontext

2013-05-24 Thread john lee
could you give more clue ? tks From: Dave Newton To: Struts Users Mailing List Sent: Friday, May 24, 2013 2:46 PM Subject: Re: struts2 Intercepter Actioncontext It's a static class. You may want to brush up on some Java and framework basics b

Re: struts2 Intercepter Actioncontext

2013-05-24 Thread Dave Newton
It's a static class. You may want to brush up on some Java and framework basics before proceeding too much further-it'll save some time in the long run. Also note that it's often faster to just try something. Dave On May 24, 2013 3:17 PM, "john lee" wrote: > > > In an cutomized Struts2 Interc

struts2 Intercepter Actioncontext

2013-05-24 Thread john lee
In an cutomized Struts2 Intercepter class,      public class SecurityVerifySessionIntercepter extends AbstractInterceptor           ActionContext actionContext = invocation.getInvocationContext();           HttpServletRequest request= (HttpServletRequest) actionContext.get(StrutsStatics.HTTP_RE