这是survey/WebRoot/WEB-INF下面的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>
<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>login_confirm</servlet-name>
<servlet-class>cla.login_confirm</servlet-class>
</servlet>
<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>StudentLoginSvlt</servlet-name>
<servlet-class>cla.StudentLoginSvlt</servlet-class>
</servlet>
<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>MarkSvlt</servlet-name>
<servlet-class>cla.MarkSvlt</servlet-class>
</servlet>
<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>determine</servlet-name>
<servlet-class>cla.determine</servlet-class>
</servlet>
<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>StudentSvlt</servlet-name>
<servlet-class>cla.StudentSvlt</servlet-class>
</servlet>
<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>TeacherSvlt</servlet-name>
<servlet-class>cla.TeacherSvlt</servlet-class>
</servlet>
<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>CourseSvlt</servlet-name>
<servlet-class>cla.CourseSvlt</servlet-class>
</servlet>
<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>ClassSvlt</servlet-name>
<servlet-class>cla.ClassSvlt</servlet-class>
</servlet>
<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>checkEnrol</servlet-name>
<servlet-class>cla.checkEnrol</servlet-class>
</servlet>
<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>Zz</servlet-name>
<servlet-class>cla.Zz</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>login_confirm</servlet-name>
<url-pattern>/login_confirm</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>StudentLoginSvlt</servlet-name>
<url-pattern>/StudentLoginSvlt</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>MarkSvlt</servlet-name>
<url-pattern>/MarkSvlt</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>determine</servlet-name>
<url-pattern>/determine</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>StudentSvlt</servlet-name>
<url-pattern>/StudentSvlt</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>TeacherSvlt</servlet-name>
<url-pattern>/TeacherSvlt</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>CourseSvlt</servlet-name>
<url-pattern>/CourseSvlt</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ClassSvlt</servlet-name>
<url-pattern>/ClassSvlt</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>checkEnrol</servlet-name>
<url-pattern>/checkEnrol</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Zz</servlet-name>
<url-pattern>/Zz</url-pattern>
</servlet-mapping>
</web-app>