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