三、web.xml 对serverlet进行配置
<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>AddRecordServlet</servlet-name>
<servlet-class>edu.scnu.cn.common.servlet.AddRecordServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>AddRecordServlet</servlet-name>
<url-pattern>/servlet/AddRecordServlet</url-pattern>
</servlet-mapping>