It is what I said IllegalStateException.. It is caused by writing to a
PrintWriter or writing the headers. You can avoid this by not writing to the
PrintWriter and not setting any response headers. You dont need to write to
out if you are forwarding a request. Write to StringBuffer() then write to
out if not forwading. Another way is increasing the buffer size of out.

Antony Paul.

----- Original Message -----
From: "Teja Jo" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, December 18, 2003 9:57 AM
Subject: Re: RequestDispatcher in servlet is not working


> Hello,
>
> No it is not throwing any exceptions.And it is asked to forward before the
response is committed.
>
> Regards,
> Tejashri.
>
> Antony Paul <[EMAIL PROTECTED]> wrote:
> You can call forward() before the response is committed. I seems that it
is
> throwing IllegalStateException.
>
> Antony Paul
>
> ----- Original Message -----
> From: "Teja Jo"
> To:
> Sent: Thursday, December 18, 2003 9:27 AM
> Subject: RequestDispatcher in servlet is not working
>
>
> > Hello everyone,
> >
> > My servlet after processing something from the HttpServletRequest
received
> by it - is supposed to forward the request using RequestDispatcher - but
it
> is not doing so.(Only when directly forwarded without doing any initial
> processing with the request - it gets forwarded).Please give a solution
for
> this.
> >
> > Thanks and regards,
> > Tejashri.
> >
> >
> >
> >
> > ---------------------------------
> > Do you Yahoo!?
> > Free Pop-Up Blocker - Get it now
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now

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

Reply via email to