当前位置:编程学习 > JAVA >>

上级目录无效,怎么回事

这是引用
<%@ page contentType="text/html; charset=gb2312" language="java"  errorPage="" %>
<%@ include file="../../Resource/rootPath.jsp"%>
<%@ page import="java.io.*"%>
<%@ page import="java.util.*"%> 
下面是错误
org.apache.jasper.JasperException: /DBA/mapManage/dealMap.jsp(2,1) File "/DBA/mapManage/../../Resource/rootPath.jsp" not found
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88)
org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:300)
org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:333)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:442)
org.apache.jasper.compiler.Parser.parseFileDirectives(Parser.java:1749)
org.apache.jasper.compiler.Parser.parse(Parser.java:127)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255)
org.apache.jasper.compiler.ParserController.parseDirectives(ParserController.java:120)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:180)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:347)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:327)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:326)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.32 logs.
以前也没有遇到过这个问题,求解 --------------------编程问答-------------------- /DBA/mapManage/../../Resource/rootPath.jsp" not found     rootPath.jsp路径不对 --------------------编程问答--------------------
引用 1 楼 carbon107 的回复:
/DBA/mapManage/../../Resource/rootPath.jsp" not found     rootPath.jsp路径不对


路径问题。 --------------------编程问答-------------------- org.apache.jasper.JasperException: /DBA/mapManage/dealMap.jsp(2,1) File "/DBA/mapManage/../../Resource/rootPath.jsp" not found
路径不对  看看路径可正确 --------------------编程问答-------------------- 见意采用绝对路径 --------------------编程问答-------------------- 以前也碰到过,../跳转几次就不对了。最后都是从根目录/开始访问的,或者是使用<%=request.getContextPath() %>/访问
补充:Java ,  Web 开发
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,