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:[EMAIL PROTECTED] > > Sent: Tuesday, July 08, 2003 12:00 PM > > To: Tomcat Users List > > Subject: Forward with includes > > > > > > Quick problem here. When ever I <[EMAIL PROTECTED]> a section of the page and > > try to use the <jsp:forward> 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
