The only way you can use response.sendRedirect() in a JSP page is inside a
scriptlet, right?
All the code in your scriptlet just gets copied into the source code of
the generated servlet. In a regular servlet, you would have to issue a
"return" statement after calling response.sendRedirect(), so you need to
do so in a JSP page as well.
Craig McClanahan
On Wed, 26 Sep 2001, Peter wrote:
> Date: Wed, 26 Sep 2001 17:19:37 -0400
> From: Peter <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: How exactly does a JSP response work?
>
> Hi all,
>
> I've run into a problem with JSPs. The problem appears to be that
> I've been using the response.sendRedirect like a return statement meaning
> that I don't expect any of the code following that to actually execute.
> However it appears that the redirect only gets executed after all the code
> is completed. So if anyone knows off hand how the response works please let
> me know.
> -Pete
>
>
>
>
>