You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ju...@bmw.de on 2009/10/16 11:07:51 UTC
execAndWait interceptor and SessionAware
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-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org