简体   繁体   English

如何在另一个目录中的WEB_INF中包含页面

[英]how to include a page in WEB_INF from a different directory

资料夹结构

This is my folder Structure I want to include the page "common/tray.jsp" form "plan/add_edit.jsp" page 这是我的文件夹结构,我想包括“ common / tray.jsp”页面和“ plan / add_edit.jsp”页面

I have done <!-- Tray --> <%@ include file="/common/tray.jsp" %> <!-- END Tray --> in plan/add_edit.jsp page But giving me 我已经在plan / add_edit.jsp页面中完成了<!-- Tray --> <%@ include file="/common/tray.jsp" %> <!-- END Tray -->

org.apache.jasper.JasperException: /plan/add_edit.jsp (line: 47, column: 9) File "/plan/common/tray.jsp" not found
<%@ include file="../common/tray.jsp" %>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在另一个目录中包含来自网页的小程序? - How to include an applet from a web page in a different directory? 阻止访问WEB_INF外部的内容(jsp文件) - Blocking access the contents(jsp files) outside WEB_INF 如何从Web存档的WEB-INF目录加载StringTemplateGroups - How to load StringTemplateGroups from the WEB-INF directory of a web archive 如何从Web存档的WEB-INF目录加载资源 - How to load a resource from WEB-INF directory of a web archive 如何从WEB-INF目录加载文件/属性? - How to load files/properties from WEB-INF directory? Maven:下载源github,编译成jar,包含Z68995FCBF432492D150Z84目录下的Z68995FCBF432492D150Z84 - Maven: download source from github, compile into jar, include jar in WEB-INF/lib directory 如何使用Maven在WAR,WEB-INF / lib目录中包含特定的jar - How to Include specific jars in WAR, WEB-INF/lib directory with maven Spring MVC:HTTP状态404 - /SimpleMVC/WEB_INF/HelloPage.jsp - Spring MVC : HTTP Status 404 - /SimpleMVC/WEB_INF/HelloPage.jsp 在使用ANT构建时,无法在eclipse中的WEB_INF文件夹中创建文件夹“类” - Unable to create folder “classes” in WEB_INF folder in eclipse while building using ANT 使用ant war任务将文件包含在WEB-INF目录中 - Using ant war task to include files in WEB-INF directory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM