0
我在我的應用程序的一個使用JSF和情況如下:請求的資源不可用
1.I有一個pages
文件夾下WEB_INF
2.Inside pages
我a.jsp
3.當我使用本地tomcat部署此應用程序時,它說「請求的資源(/pages/a.jsp)不可用。」
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaeehttp://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>Sample_Proj</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>AddUser.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
</web-app>
還有什麼我需要添加到web.xml? 下面的網址是我用什麼打的頁面: http://localhost:8080/Sample_Proj/WEB-INF/page/AddUser.jsp