If /product_view.jsp is at the root of your tree (a top level document),
surely it can not know how to go up above the root. This is by design.

I say it's at the root of the tree of the virtual host based on the
parse error "/product_view.jsp(2,0)"

dik

On 12/12/2006 1:22 AM also sprach Wang Penghui :
> Hello,
>
> I am using tomcat 5.5.20, apache 2.0 and mod_jk.so to building a jsp
> server on a RHEL 4.
>
> And there is a very strange problem here:
>
> There is a file named "headerCon.jsp" in the document root of a virtual
> host. And there is a folder named product. There is a file named
> product_view.jsp in the folder product.
>
> Here is a folder structure
>
> wwwroot--headerCon.jsp
>         |
>         -product/
>                 |
>                 -product_view.jsp
>
> And  there are the follow sentences in product_view.jsp:
>
> <%@ page contentType="text/html; charset=gb2312" language="java"
> errorPage="" %>
> <%@ include file ="../headerCon.jsp"%>
> <%@ page import="com.longtopsystem.comm.*" %>
> <%@ page import="com.handle.common.*" %>
>
> Then there web browser will show me the follow error messages:
>
> HTTP Status 500 -
>
> --------------------------------------------------------------------------------
>
> type Exception report
> message
> description The server encountered an internal error () that prevented
> it from fulfilling this request.
> exception
> org.apache.jasper.JasperException: /product_view.jsp(2,0) File
> "/../headerCon.jsp" not found
>       
> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>       javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
>
> root cause
> org.apache.jasper.JasperException: /product_view.jsp(2,0) File
> "/../headerCon.jsp" not found
> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
> org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
> org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:86)
> org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:339)
> org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:372)
> org.apache.jasper.compiler.Parser.parseDirective(Parser.java:484)
> org.apache.jasper.compiler.Parser.parseElements(Parser.java:1556)
> org.apache.jasper.compiler.Parser.parse(Parser.java:126)
> org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
> org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
> org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:155)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>       javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
>
> note The full stack trace of the root cause is available in the Apache
> Tomcat/5.5.20 logs.
>
> --------------------------------------------------------------------------------
>
> Apache Tomcat/5.5.20
>
>
> But if i copy the file headerCon.jsp to the product/ folder. and change
> the line
> <%@ include file ="../headerCon.jsp"%>
> to
> <%@ include file ="headerCon.jsp"%>
> It works great.
>
> And i have also tried use a absolute path, it doesn't work.
>
> I have digged this for a while, but no result. Could someone pick me up?
>
> Every repsonse is appreciated.
>
> Best regards
>
> Wang.
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>   



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to