(Note that this is a standard J2EE function, not specific to Struts)
If a session is still valid, then calling:
will return a non-null session. However I have a feeling Struts will automatically create the session (if it does not exist) before any Action is called. You may need to create a custom RequestProcessor or ServletRequestListener to intercept the call before this happens.
Hope that helps.
Ryan Dillon<br />Code Canvas Technologies<br />RapidJ - Rapid Java Web Development<br /><a href="http://www.codecanvas.com.au/rapidj/" target="_blank" rel="nofollow">http://www.codecanvas.com.au/rapidj/</a>
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com