为什么将面孔添加到我的网址中?

时间:2018-08-14 02:51:53

标签: jsf

我的web.xml中包含以下内容(请注意,没有servlet映射):

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" version="3.1">
  <display-name>CourseManagementJDBC</display-name>
  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.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>

,当我右键单击项目中的addCourse.jsp文件(按照我的书中的说明)时,以下网址在eclipse中无效:

http://localhost:8090/CourseManagementJDBC/faces/addCourse.jsp

我已经重新启动了eclipse,重新启动了Tomcat,清理了项目,进行了全新安装,但是没有一个操作可以从url中删除该面孔。

先谢谢了。

0 个答案:

没有答案