Post the entire code of your jsp.
Its quite possible that the problem code lie somewhere else.
Have a nice day.
With regards,
Sachin S. Khanna
http://www.emailanorder.com
----- Original Message -----
From: Patrick Pierra <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 11, 2001 2:54 PM
Subject: response already commited
> Hello,
>
> I' try to create an Object in a JSP :
>
> <%
> User tUser = new User();
> ......
> %>
>
> When i run this JSP on Tomcat i receive this error message :
>
> Error: 500
> Location: /odata1/Registration.jsp
> Internal Servlet Error:
> java.lang.IllegalStateException: Response has already been committed
> java.lang.Throwable(java.lang.String)
> java.lang.Exception(java.lang.String)
> java.lang.RuntimeException(java.lang.String)
> java.lang.IllegalStateException(java.lang.String)
> void
> org.apache.tomcat.core.HttpServletResponseFacade.sendError(int,
> java.lang.String)
> void
>
org.apache.jasper.runtime.JspServlet.unknownException(javax.servlet.http.Htt
pServletResponse,
>
> java.lang.Throwable)
> void
>
org.apache.jasper.runtime.JspServlet.service(javax.servlet.http.HttpServletR
equest,
>
> javax.servlet.http.HttpServletResponse)
> void
> javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
> javax.servlet.ServletResponse)
> void
>
org.apache.tomcat.core.ServletWrapper.handleRequest(org.apache.tomcat.core.R
equest,
>
> org.apache.tomcat.core.Response)
> void
>
org.apache.tomcat.core.ContextManager.service(org.apache.tomcat.core.Request
,
>
> org.apache.tomcat.core.Response)
> void
>
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(org.a
pache.tomcat.service.TcpConnection,
>
> java.lang.Object [])
> void org.apache.tomcat.service.TcpConnectionThread.run()
> void java.lang.Thread.run()
>
>
> any explication ?
>
> Patrick PIERRA
>
>
===========================================================================
> 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://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
===========================================================================
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://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets