Hello,

I use a execAndWait interceptor in my struts2 app. I have action which does a 
database query which takes a long time.
The interceptor prevent a session timeout.

The problem is that I need to run following functions in my action class.

request.getContextPath(); //return null
HttpSession sess =  request.getSession(); //return null
request.setAttribute //throws an exception

The doc http://struts.apache.org/2.1.8/docs/execute-and-wait-interceptor.html 
says you should implement a SessionAware if you need the session object.
But with it I only get a Map.

Does anybody know how to get the object from the functions above?

Thank!



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to