打开网页http://localhost:8080/longin_servlet时出现的错误
HTTP Status 404 - /longin_servlet--------------------------------------------------------------------------------type Status reportmessage /longin_servletdescription The requested resource (/longin_servlet) is not available.Land。jsp中的表单为:
<form name="frmLogin" method="post" action="/longin_servlet" onSubmit="return isValid(this);">
web。xml中为:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<servlet>
<servlet-name>longin_servlet</servlet-name>
<servlet-class>longin_servlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>longin_servlet</servlet-name>
<url-pattern>/longin_servlet</url-pattern>
</servlet-mapping>
</web-app>
怎么改啊?谢谢高手大侠
HTTP Status 404 - /longin_servlet--------------------------------------------------------------------------------type Status reportmessage /longin_servletdescription The requested resource (/longin_servlet) is not available.Land。jsp中的表单为:
<form name="frmLogin" method="post" action="/longin_servlet" onSubmit="return isValid(this);">
web。xml中为:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<servlet>
<servlet-name>longin_servlet</servlet-name>
<servlet-class>longin_servlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>longin_servlet</servlet-name>
<url-pattern>/longin_servlet</url-pattern>
</servlet-mapping>
</web-app>
怎么改啊?谢谢高手大侠
<servlet-class>longin_servlet </servlet-class>
这个里面写你servlet的路径,不是就写名字