If you want to redirect the request you have to do it
 before printing any other thing on the page.

Example:

it works:

<redirect code here>

<html>
<head>
...
</head>
...

it does not work:

<html>
<head>
...
</head>

<redirect code here>
...
On Fri, 9 Aug 2002 09:38:32 -0700 (PDT)
Ashish Kulkarni <[EMAIL PROTECTED]> wrote:
>Hi
>
>I am developing a web application and came accross
>this problem.
>when in my jsp page i have <jsp:include> runtime
>include and then later in the code when i have
>response.sendRedirect or
>request.getRequestDispatcher() to forward the jsp page
>i get error saying the
>java.lang.IllegalStateException: Response has already
>been committed.
>but when i use <%@ %> compile time include i  dont get
>this error, 
>Can some one explain the why
>Ashish
>
>__________________________________________________
>Do You Yahoo!?
>HotJobs - Search Thousands of New Jobs
>http://www.hotjobs.com
>
>--
>To unsubscribe, e-mail:
>   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>

-----------------------------------------
Prefiro as l�grimas da derrota
do que a vergonha de n�o ter lutado... 

Willan Brook
-----------------------------------------
________________________________________________
Don't E-Mail, ZipMail! http://www.zipmail.com/

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

Reply via email to