javaweb连接数据库 更改路径页面就会显示,但是只能一个页面一个页面显示,实现不了跳转,怎么解决呢
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1">
<!--注册servlet-->
<servlet>
<servlet-name>Hello</servlet-name>
<servlet-class>testservlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Hello</servlet-name>
<url-pattern>/hi</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>Distribution</servlet-name>
<servlet-class>Manage.Distribution</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Distribution</servlet-name>
<url-pattern>/dis</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>Monitor</servlet-name>
<servlet-class>Manage.Monitor</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Monitor</servlet-name>
<url-pattern>/mon</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>Login</servlet-name>
<servlet-class>Manage.Login</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Login</servlet-name>
<url-pattern>/login</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>add</servlet-name>
<servlet-class>Manage.add</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>add</servlet-name>
<url-pattern>/add</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>delete</servlet-name>
<servlet-class>Manage.delete</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>delete</servlet-name>
<url-pattern>/delete</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>que</servlet-name>
<servlet-class>Manage.Query</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>que</servlet-name>
<url-pattern>/que</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>update</servlet-name>
<servlet-class>Manage.update</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>update</servlet-name>
<url-pattern>/update</url-pattern>
</servlet-mapping>
</web-app>