<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" 
	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_2_5.xsd">
	
	
	
	<!-- 指定spring的配置文件，默认从web根目录寻找配置文件，我们可以通过spring提供的classpath:前缀指定从类路径下寻找 -->
	<context-param>
	   <param-name>contextConfigLocation</param-name>
	   <param-value>classpath:beans.xml</param-value>
	</context-param>
	
	
	<!-- 对Spring容器进行实例化 -->
	<listener>
	      <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
	</listener>
	
	
	<!-- struts启用配置 -->
	<filter>
	      <filter-name>struts2</filter-name> 
        <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
	</filter>

    <filter-mapping>
        <filter-name>struts2</filter-name>
        <url-pattern>*.action</url-pattern>
    </filter-mapping>
    
    
    <!-- 登录验证servlet配置 -->
    <servlet>
        <servlet-name>LoginServlet</servlet-name>
        <servlet-class>com.mobileserver.servlet.LoginServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>LoginServlet</servlet-name>
        <url-pattern>/LoginServlet</url-pattern>
    </servlet-mapping>
      
    <!-- 用户注册servlet配置 -->
    <servlet>
        <servlet-name>RegisterServlet</servlet-name>
        <servlet-class>com.mobileserver.servlet.RegisterServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>RegisterServlet</servlet-name>
        <url-pattern>/RegisterServlet</url-pattern>
    </servlet-mapping>
    
    <!-- 上传图片servlet配置 -->
    <servlet>
        <servlet-name>UpPhotoServlet</servlet-name>
        <servlet-class>com.mobileserver.servlet.UpPhotoServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>UpPhotoServlet</servlet-name>
        <url-pattern>/UpPhotoServlet</url-pattern>
    </servlet-mapping> 
    
    <!-- 学院信息管理servlet配置 -->
    <servlet>
        <servlet-name>CollegeInfoServlet</servlet-name>
        <servlet-class>com.mobileserver.servlet.CollegeInfoServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>CollegeInfoServlet</servlet-name>
        <url-pattern>/CollegeInfoServlet</url-pattern>
    </servlet-mapping>

    <!-- 专业信息管理servlet配置 -->
    <servlet>
        <servlet-name>SpecialFieldInfoServlet</servlet-name>
        <servlet-class>com.mobileserver.servlet.SpecialFieldInfoServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>SpecialFieldInfoServlet</servlet-name>
        <url-pattern>/SpecialFieldInfoServlet</url-pattern>
    </servlet-mapping>

    <!-- 班级信息管理servlet配置 -->
    <servlet>
        <servlet-name>ClassInfoServlet</servlet-name>
        <servlet-class>com.mobileserver.servlet.ClassInfoServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>ClassInfoServlet</servlet-name>
        <url-pattern>/ClassInfoServlet</url-pattern>
    </servlet-mapping>

    <!-- 学生信息管理servlet配置 -->
    <servlet>
        <servlet-name>Student_QQ287307421Servlet</servlet-name>
        <servlet-class>com.mobileserver.servlet.Student_QQ287307421Servlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>Student_QQ287307421Servlet</servlet-name>
        <url-pattern>/Student_QQ287307421Servlet</url-pattern>
    </servlet-mapping>

    <!-- 教师信息管理servlet配置 -->
    <servlet>
        <servlet-name>Teacher_QQ287307421Servlet</servlet-name>
        <servlet-class>com.mobileserver.servlet.Teacher_QQ287307421Servlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>Teacher_QQ287307421Servlet</servlet-name>
        <url-pattern>/Teacher_QQ287307421Servlet</url-pattern>
    </servlet-mapping>

    <!-- 课程信息管理servlet配置 -->
    <servlet>
        <servlet-name>CourseInfo_QQ254540457Servlet</servlet-name>
        <servlet-class>com.mobileserver.servlet.CourseInfo_QQ254540457Servlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>CourseInfo_QQ254540457Servlet</servlet-name>
        <url-pattern>/CourseInfo_QQ254540457Servlet</url-pattern>
    </servlet-mapping>

    <!-- 选课信息管理servlet配置 -->
    <servlet>
        <servlet-name>StudentSelectCourseInfoServlet</servlet-name>
        <servlet-class>com.mobileserver.servlet.StudentSelectCourseInfoServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>StudentSelectCourseInfoServlet</servlet-name>
        <url-pattern>/StudentSelectCourseInfoServlet</url-pattern>
    </servlet-mapping>

    <!-- 成绩信息管理servlet配置 -->
    <servlet>
        <servlet-name>ScoreInfoServlet</servlet-name>
        <servlet-class>com.mobileserver.servlet.ScoreInfoServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>ScoreInfoServlet</servlet-name>
        <url-pattern>/ScoreInfoServlet</url-pattern>
    </servlet-mapping>

    <!-- 新闻信息管理servlet配置 -->
    <servlet>
        <servlet-name>NewsServlet</servlet-name>
        <servlet-class>com.mobileserver.servlet.NewsServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>NewsServlet</servlet-name>
        <url-pattern>/NewsServlet</url-pattern>
    </servlet-mapping>

 
  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>
</web-app>
