I have a simple JSP based web application. The root of the application is as follows:
|
|
|
| `
|
|
|
|
|
|
Where web.xml contains the lines below:
<servlet>
<servlet-name>servlet-jsp</servlet-name>
<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>servlet-jsp</servlet-name>
<url-pattern>/*.jsp</url-pattern>
</servlet-mapping>
Now I want to change the file structure of the project - move all * .jsp files to a special directory:
|
|
|
| `
|
|
|
|
|
|
|
Can I configure "servlet-jsp" to handle jsp / some1.jsp when the URL "/some1.jsp" is requested?
source
share