On Wed, 18 Apr 2001, Puneet Vardhan wrote:

> Hi,
>       How can I access the action mapping instance if session is expired?
> I have a global forward in struts-config.xml which points to logon page
> 
>       <global-forwards>
>       <forward   name="logon"  path="/logon.jsp"/>
>       </global-forwards>
> 
>       in session expires  I need to forward to logon page 
> 
>       something like    if ( session == null ) mapping.findForward(logon);
>       
>       Is the ActionMapping object kept in session scope or application
> scope?
> Thanks
> Puneet
> 

The ActionMapping instances themselves are stored in application scope,
because they are constant for the entire application (and shared by all
users).

Within an Action.perform() method, the logic you've described above should
work fine.

Craig


Reply via email to