I am developing an web application and i can access it using the below URL:
http://localhost:8090/LPT/jsp/index.jsp
Can i access with context path.
I am developing an web application and i can access it using the below URL:
http://localhost:8090/LPT/jsp/index.jsp
Can i access with context path.
You can use servlet mapping functionality in web.xml to achieve this.
In your web.xml, you can add:
<servlet>
<servlet-name>index</servlet-name>
<jsp-file>/jsp/index.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>index</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>