只需要在web.xml中配置<servlet></servlet>和<servlet-mapping></servlet-mapping>
<?xml version="1.0" encoding="UTF-8"?>
<web-app>
<display-name>PerSys</display-name>
<servlet>
<servlet-name>PersonEntry</servlet-name>
<servlet-class>com.jsp.servlet.PersonEntry</servlet-class>
</servlet>
<servlet>
<servlet-name>Login</servlet-name>
<servlet-class>com.jsp.servlet.Login</servlet-class>
</servlet>
<servlet>
<servlet-name>Register</servlet-name>
<servlet-class>com.jsp.servlet.Register</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>PersonEntry</servlet-name>
<url-pattern>/servlet/PersonEntry</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Login</servlet-name>
<url-pattern>/servlet/Login</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Register</servlet-name>
<url-pattern>/servlet/Register</url-pattern>
</servlet-mapping>
</web-app>