> Grant Doran wrote:

> 
> getServletContext().getRequestDispatcher("/index.jsp").forward(request,
> response);
> }
> else
> {
>   System.out.println("[GATEWAYSERVLET]Authentication failure.
> Username:[" + username + "] Password:[" + password + "]");
> 
>   request.getSession().setAttribute("LoginFailure","true");
> 

> BUGGER ME! I AM HERE AFTER ALL
> ----------------------------------------------------------------
> 
> How can this be? Execution of the servlet(thread) is supposed to cease
> immediately and control handed to the target.
> 
> Am I missing something?
You might want to try to return from your method ;-) Forwarding a
request does not mean that execution of your method does not continue.
Just like in any code, control reverts to the method after forward
returns.

sven

-- 
======================================================================================
Sven E. van 't Veer                                          
http://www.cachoeiro.net
Java Developer                                                      [EMAIL PROTECTED]
======================================================================================

Reply via email to