> -----Original Message-----
> From: Alex Colic [mailto:[EMAIL PROTECTED]] 
> Sent: donderdag 6 december 2001 22:06
> To: Struts
> Subject: Can't forward to a global?
> 
> 
> 
> Hi,
> 
> I have an action class that could get called after a users session has
> expired. When the action class is called I have the following code:
> 
>     if(session == null || session.isNew())
>         {
>           return mapping.findForward("logon");
>         }
> I have a global forward defined for "logon."
> 
> Now the problem:
> 
> When a user's session is expired and the click a link they go to this
> action. The if statement evaluates to true and the forward to "logon"
> correctly occurs. Then the rest of the Action code continues to be
> evaluated.
> 
> Why is the rest of my code following the above if statement 
> continuing to be
> run when I have done a forward?

Are you absolutely sure about this? No other people on your server who
could generate the same debug code as you? Because I don't expect the
code to continue: the return ...; statement jumps out of the method.

hth,
tomK

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to