Re: Session not set before prepare() function with Struts 2 prepare interceptor

2007-03-28 Thread Dave Newton
--- Jason Wyatt [EMAIL PROTECTED] wrote: interceptor-stack name=userprep interceptor-ref name=authentication / interceptor-ref name=prepare / interceptor-ref name=defaultStack/ /interceptor-stack Your question was already answered, but I'd add that normally

Session not set before prepare() function with Struts 2 prepare interceptor

2007-03-27 Thread Jason Wyatt
Hi, I'm trying to use the prepare interceptor in Struts 2, and although the Action's prepare() function IS being called, the session doesn't seem to be set on the action before the prepare() function is called. The action implements SessionAware, and has a setSession(Map session) function.

Re: Session not set before prepare() function with Struts 2 prepare interceptor

2007-03-27 Thread Rohit Dewan
Hi Jason, I believe it is the servlet-config interceptor that is responsible for setting the session. I think it is part of the defaultStack. Try moving the defaultStack before prepare in your configuration. That might do the job. Regards, Rohit On 3/27/07, Jason Wyatt [EMAIL PROTECTED] wrote:

RE: Session not set before prepare() function with Struts 2 prepare interceptor

2007-03-27 Thread Jason Wyatt
() function with Struts 2 prepare interceptor Hi Jason, I believe it is the servlet-config interceptor that is responsible for setting the session. I think it is part of the defaultStack. Try moving the defaultStack before prepare in your configuration. That might do the job. Regards, Rohit On 3/27/07