struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mojoRising <jpi...@averoinc.com>
Subject Does Execute and Wait Interceptor work with ServletRequestAware interface?
Date Tue, 06 May 2008 19:32:22 GMT

I am using the Execute and Wait Interceptor on my login action. This action
needs to access the HTTPRequest object so that it can get the HTTPSessionId,
and the request headers and store all of this in the database as well as
putting the userObject in the session itself.

Documentation says that when using ExecAndWait I need to implement
SessionAware interface and access my session via the sessionMap. However,
the only way I can get the request headers and the sessionID is by
implementing ServletRequestAware, getting the request object first, and then
getting the real HTTPSession from there (not the SessionMap).

I am in a quandry. Do I need to implement both interfaces? Is
ServletRequestAware as reliable when using execAndWait as SessionAware is?





-- 
View this message in context: http://www.nabble.com/Does-Execute-and-Wait-Interceptor-work-with-ServletRequestAware-interface--tp17090576p17090576.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Mime
View raw message