You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Kishor K <ki...@yahoo.com> on 2001/08/10 11:59:39 UTC
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.handleDirective(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(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(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(ContextManager.java:81
2)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.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