Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 6485 invoked from network); 8 Jul 2003 16:08:24 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 8 Jul 2003 16:08:24 -0000 Received: (qmail 19314 invoked by uid 97); 8 Jul 2003 16:10:53 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 19307 invoked from network); 8 Jul 2003 16:10:52 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 8 Jul 2003 16:10:52 -0000 Received: (qmail 4987 invoked by uid 500); 8 Jul 2003 16:08:09 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 4972 invoked from network); 8 Jul 2003 16:08:09 -0000 Received: from mail.vortechnics.com (HELO vortechnics1.Inc.Vortechnics.com) (216.195.219.19) by daedalus.apache.org with SMTP; 8 Jul 2003 16:08:09 -0000 Received: from [172.31.10.189] (VORT615 [172.31.10.189]) by vortechnics1.Inc.Vortechnics.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 3QS4D4AJ; Tue, 8 Jul 2003 12:08:40 -0400 Subject: RE: Forward with includes From: Nick Stuart To: Tomcat Users List In-Reply-To: <24A8596C44DF4F4DA442CBE269C351BDBAE04E@wbmail.guidestar.net> References: <24A8596C44DF4F4DA442CBE269C351BDBAE04E@wbmail.guidestar.net> Content-Type: multipart/alternative; boundary="=-AYdHBSdxs8EtheUx6tU5" Message-Id: <1057680464.12270.4.camel@vort615.inc.vortechnics.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.0 Date: 08 Jul 2003 12:07:45 -0400 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --=-AYdHBSdxs8EtheUx6tU5 Content-Type: text/plain Content-Transfer-Encoding: 7bit Ok, thanks for the reply. Time for some reorganization. :( -Nick On Tue, 2003-07-08 at 12:03, Angus Mezick wrote: > You can ONLY forward when data hasn't been sent to the web browser. > Move your forwards as far up your page as possible or go with a model 2 > architecture and put all your logic in a servlet and have the jsp only > display data. > --Angus > > > -----Original Message----- > > From: Nick Stuart [mailto:nstuart@cs.usm.maine.edu] > > Sent: Tuesday, July 08, 2003 12:00 PM > > To: Tomcat Users List > > Subject: Forward with includes > > > > > > Quick problem here. When ever I <%@include%> a section of the page and > > try to use the tag I get the following null pointer > > exception: > > java.lang.NullPointerException > > at > > org.apache.jasper.runtime.PageContextImpl.forward(PageContextI > > mpl.java:430) > > at org.apache.jsp.index_jsp._jspService(index_jsp.java:382) > > at > > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) > > at > > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > > at > > org.apache.jasper.servlet.JspServletWrapper.service(JspServlet > > Wrapper.java:210) > > at > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet > > .java:295) > > at > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) > > at > > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > > at > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilt > > er(ApplicationFilterChain.java:247) > > at > > org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli > > cationFilterChain.java:193) > > at > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardW > > rapperValve.java:256) > > at > > org.apache.catalina.core.StandardPipeline$StandardPipelineValv > > eContext.invokeNext(StandardPipeline.java:643) > > at > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel > > ine.java:480) > > . > > . > > . > > > > It is happening right on the forward part in the compiled servlet. Is > > this a bug or a spec thing? If its a bug is there anyway to get around > > it? > > Thanks for the help! > > > > -Nick > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > --=-AYdHBSdxs8EtheUx6tU5--