one is under ROOT as webapps/ROOT/jsp/error.jsp and other is under webapps/documents/jsp/errorpage.jsp and my web.xml entry is as follows
<servlet>
<servlet-name>ErrorPage</servlet-name>
<servlet-class>org.apache.jsp.jsp.error_jsp</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ErrorPage</servlet-name>
<url-pattern>/jsp/errorpage.jsp</url-pattern>
</servlet-mapping>
In general web.xml contains servlet
and servlet-mapping
entry. servlet-mapping
entry contains the url and servlet
entry contains the servlet path upto my understanding.
I couldn't understand the above entry in web.xml. Please help me know about it.