i tried it that way also.
still i am getting the same error.
and there is no error due to case sensitivity.

----- Original Message ----- 
From: "Larry Isaacs" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 10, 2001 7:28 PM
Subject: RE: include and forward error


> Its not clear if you tried getting this to work directly
> in Tomcat, i.e. http://localhost:8080/example/file1.jsp
> If not, try this to see if the problem is strickly within
> Tomcat.
> 
> Note that if your file was named "incFile.jsp" instead of
> "incfile.jsp" you would get this error due to case sensitivity
> of URL's.
> 
> Larry
> 
> > -----Original Message-----
> > From: Kishor K [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, August 10, 2001 6:00 AM
> > To: Tomcat User Mailing List; A mailing list about Java Server Pages
> > specification and reference
> > Subject: include and forward error
> > 
> > 
> > hi,
> >         I need clarification two errors I am getting.
> > i am using apache 1.3.20 with tomcat 3.2.3.
> > 
> > i have the following directory structure
> > 
> > ROOT-> example
> > 
> > there is a file file1.jsp in example directory
> > in this file i am trying to include a file incfile.jsp in the 
> > ROOT directory
> > using
> > 
> > <%@ include file="../incfile.jsp"%>
> > in this case i am getting the following error
> > 
> > 
> > org.apache.jasper.compiler.CompileException:
> > D:\jakarta-tomcat\webapps\ROOT\example\file1.jsp(43,0) Bad 
> > file argument to
> > include
> >         at
> > org.apache.jasper.compiler.JspParseEventListener.handleDirecti
> > ve(JspParseEve
> > ntListener.java:728)
> >         at
> > org.apache.jasper.compiler.DelegatingListener.handleDirective(
> > DelegatingList
> > ener.java:116)
> >         at
> > org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)
> >         at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
> >         at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
> >         at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
> >         at 
> > org.apache.jasper.compiler.Compiler.compile(Compiler.java:209)
> >         at
> > org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
> >         at
> > org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader1
> > 2.java:146)
> >         at 
> > org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
> >         at
> > org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfN
> > ecessary(JspSe
> > rvlet.java:258)
> >         at
> > org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
> > (JspServlet.ja
> > va:268)
> >         at
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> > .java:429)
> >         at 
> > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
> >         at 
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >         at
> > org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper
> > .java:405)
> >         at org.apache.tomcat.core.Handler.service(Handler.java:287)
> >         at
> > org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> >         at
> > org.apache.tomcat.core.ContextManager.internalService(ContextM
> > anager.java:81
> > 2)
> >         at
> > org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
> >         at
> > org.apache.tomcat.service.connector.Ajp12ConnectionHandler.pro
> > cessConnection
> > (Ajp12ConnectionHandler.java:166)
> >         at
> > org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin
> > t.java:416)
> >         at
> > org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo
> > ol.java:501)
> >         at java.lang.Thread.run(Thread.java:484)
> > 
> > and
> > 
> > there is another file file2.jsp in example directory
> > in this file i am trying to forward to a file forwfile.jsp in the ROOT
> > directory using
> > 
> > <jsp:forward page="../forwfile.jsp">
> > </jsp:forward>
> > 
> > in this case i am getting the following error.
> > 
> > Original request: /example /../forwfile.jsp
> > Not found request: /example /../forwfile.jsp
> > 
> > Can anyone out thr help me with these ?
> > 
> > Thanx in advance
> > Kishor
> > 
> > 
> > 
> > _________________________________________________________
> > 
> > Do You Yahoo!?
> > 
> > Get your free @yahoo.com address at http://mail.yahoo.com
> > 
> > 
> >


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

Reply via email to