use return after redirect and it should work.
here's a small sample...............
****************
try{
response.sendRedirect("FirstPage.jsp");
}
catch(Exception e){
}
finally{
return;
}
***************
Hope this helps,
Niranjan
----- Original Message -----
From: Dion Almaer <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 26, 1999 8:45 AM
Subject: sendRedirect() / <jsp:forward.../> etc
> Hi,
>
> I noticed that when I do a sendRedirect() it doesn't jump on that ... but
> rather carries on processing untill its time to send back a response.
>
> So:
>
> sendRedirect("http://www.here.com/gohere.html");
>
> ...
>
> sendRedirect("http://www.here.com/gothere.html");
>
> would result in the page going to gothere.html.
>
> Is there a way to say 'ok right now send a redirect to X and don't bother
> processing anything else'?
>
> Does <jsp:forward /> do something like that?
>
> Thanks,
>
> Dion
>
>
> --
> \\|//
> (o o)
> +----oOOo-(_)-oOOo--------------------------------------------------+
> | [EMAIL PROTECTED] | "Statistics show every two minutes |
> | www.almaer.com/dion | another statistic is created." |
> +-------------------------------------------------------------------+
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> FAQs on JSP can be found at:
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html