On 12/4/2017 3:00 AM, saravana2...@gmail.com wrote:
> setSession() method is not called even after implementing sessionAware

ServletConfigInterceptor calls setSession but only on action, not on 
previous or next interceptors:

         if (action instanceof SessionAware) {
             ((SessionAware) action).setSession(context.getSession());
         }

I think you can rewrite your interceptor as below instead (like 
ServletConfigInterceptor):

public class SessionInterceptor extends AbstractInterceptor  {
        SessionMap<String, Object> session;

        @Override
        public String intercept(ActionInvocation arg0) throws Exception
        {
session = arg0.getInvocationContext().getSession();
                //...
        }

}

Reply via email to