this happens because you are forwarding to another page when you have
already sent data to the client. You must use buffered output, with the
autoflush option set to false
----- Mensaje Original -----
De: Drew Nichols <[EMAIL PROTECTED]>
Fecha: Viernes, Enero 19, 2001 7:46 am
Asunto: <jsp:forward page="thanks.html" />
> Why can't I forward to an html page from a jsp page??
> The page loads (and from the users point of view the errors make no
> difference) but a long error message is generated (see below).
> The error is generated at or after the forward to the .html is
> reached in
> the jsp.
> Do I have to change my static thank you page to a jsp??
>
>
> java.lang.IllegalStateException: Can't happen - classname is null,
> who added
> this ?
> at
> org.apache.tomcat.core.ServletWrapper.loadServlet
(ServletWrapper.java:253)
> at
> org.apache.tomcat.core.ServletWrapper.getServlet
(ServletWrapper.java:205)
> at
> org.netbeans.modules.web.monitor.server.Monitor.postService
(Monitor.java:186
> )
> at
> org.apache.tomcat.core.ContextManager.doPostService
(ContextManager.java:827)
> at org.apache.tomcat.core.Handler.service(Handler.java:268)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:356)
> at
> org.apache.tomcat.core.ContextManager.internalService
(ContextManager.java:72
> 0)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:666)
> at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection
(HttpC
> onnectionHandler.java:194)
> at
> org.apache.tomcat.service.TcpWorkerThread.runIt
(PoolTcpEndpoint.java:403)
> at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run
(ThreadPool.java:498)
> at java.lang.Thread.run(Thread.java:484)
> 2001-01-18 09:16:55 - Ctx( ): Exception in: R( + / +
> /booking/thankYou.html) - java.lang.NullPointerException
> at
> org.netbeans.modules.web.monitor.server.Monitor.postService
(Monitor.java:188
> )
> at
> org.apache.tomcat.core.ContextManager.doPostService
(ContextManager.java:827)
> at org.apache.tomcat.core.Handler.service(Handler.java:268)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:356)
> at
> org.apache.tomcat.core.ContextManager.internalService
(ContextManager.java:72
> 0)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:666)
> at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection
(HttpC
> onnectionHandler.java:194)
> at
> org.apache.tomcat.service.TcpWorkerThread.runIt
(PoolTcpEndpoint.java:403)
> at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run
(ThreadPool.java:498)
> at java.lang.Thread.run(Thread.java:484)
>
>
========================================================================
===
> 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
>
________________________________________________________________
Aprovechamos este mensaje para desearte una FELIZ NAVIDAD.
Entra en http://www.navidad.navegalia.com/ y descubre las sorpresas que
Navegalia tiene para esta Navidad.
===========================================================================
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