How to remove JSP's native request URL?
问题 I have a webpage page called page.jsp , and I only want it to have 2 URLs: /page-url-1 /page-url-2 In the web.xml I wrote: <servlet> <servlet-name>Page</servlet-name> <jsp-file>page.jsp</jsp-file> </servlet> <servlet-mapping> <servlet-name>Page</servlet-name> <url-pattern>/page-url-1</url-pattern> <url-pattern>/page-url-2</url-pattern> </servlet-mapping> But now, it has 3 URLs: /page.jsp <== Not wanted /page-url-1 /page-url-2 Question: How do I remove the JSP's native URL, and assign it