今天上午调用jsp时突然遇见了404这个问题,想了很长时间感觉没错啊,最后在web.xml中找到了错误
HTTP Status 404 -
type Status report
message
description The requested resource is not available.
Apache Tomcat/6.0.37
、
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
<servlet>
<description>This is the description of my J2EE component</description>
<display-name>This is the display name of my J2EE component</display-name>
<servlet-name>indexdealServlet</servlet-name>
<servlet-class>indexdealServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>indexdealServlet</servlet-name>
<url-pattern>/deal</url-pattern> -------------// VS ------错啦-<url-pattern>deal</url-pattern>
</servlet-mapping>
</web-app>