这是我的场景...我的主页链接是
local/proj/admin-home
当我浏览另一个链接时
local/proj/registration/organization-registry
但是在那个页面上,当我将鼠标悬停在另一个链接中时,链接给了我
local/proj/registration/list
但是这个链接必须是
local/proj/list
所以我注意到,当我浏览到链接 local/proj/registration/organization-registry 时,该页面中的所有链接也以 local/proj/registration/ 开头,但它必须是 /local/proj/...
这是我的 xml 文件
<servlet>
<servlet-name>admin-home</servlet-name>
<servlet-class>web.HomeServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>admin-home</servlet-name>
<url-pattern>/admin-home</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>list</servlet-name>
<servlet-class>ViewRegisteredServlet.RegisteredOrganizationServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>list</servlet-name>
<url-pattern>/list</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>organization-registry</servlet-name>
<servlet-class>web_registration.OrganizationServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>organization-registry</servlet-name>
<url-pattern>/registration/organization-registry</url-pattern>
</servlet-mapping>