Yes,
     This "response already commited" error is because of the JSP tag of including the 
files as Vikram has pointed out. Remove that statement, it will work. Instead you can 
use, <@page include.......... />

Smita
 Vikramjit Singh <[EMAIL PROTECTED]>:

> hi adnan,
>
> even i had got this error. i was doing the processing in the jsp and
> had
> included a file like
> <jsp:include page="mypage.jsp" flush="true" /> and redirecting after
> the
> page had done processing. after i deleted that include jsp line. my
> code
> worked. and logically thinking i didnt need to have that line also
> since
> anyways i was gonna redirect to some other page. and it worked.
>
> u r running stored procedures in ur jsp file. just see if you have also
> not
> included any file.
>
> Hope it helps,
> Vikramjit Singh,
> Systems Engineer,
> GTL Ltd.
> Ph. 7612929-3140
>
>
> -----Original Message-----
> From: Adnan Ali [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 25, 2002 9:27 AM
> To: [EMAIL PROTECTED]
> Subject: sendRedirect() error.
>
>
> Hi folks.
>
> I am working on this JSP, where I execute stored procedures on the data
> collected on the previous JSP. Ok, now have to redirect to the next JSP
> from
> the stored procedure page, and I get the following error.
>
> Cannot call sendRedirect() after the response has been committed.
>
> The following is the code I use for the redirect.
>
> response.sendRedirect("eeodataentry.jsp?appID="+appID);
>
> Any hint would be appreciated.
>
> Adnan Ali
>
>
>
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos:
> http://photos.msn.com/support/worldwide.aspx
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>

-------------------------------------------------
This mail helped a tree grow. Know more at http://green.sify.com

Take the shortest route to success!
Click here to know how http://education.sify.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to