struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Juergen.L...@bmw.de>
Subject execAndWait interceptor and SessionAware
Date Fri, 16 Oct 2009 09:07:51 GMT
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


Mime
View raw message