struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject execAndWait interceptor and SessionAware
Date Fri, 16 Oct 2009 09:07:51 GMT

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 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?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message