Hello
Inside my web.xml:
<servlet>
<servlet-name>bigServlet</servlet-name>
<jsp-file>big_common/_getdata.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>bigServlet</servlet-name>
<url-pattern>big/servlet/*</url-pattern>
</servlet-mapping>
The problem is when I'm trying to invoke request.getServletPath() inside _getdata.jsp, because it returns path:"/big_common/_getdata.jsp". But when I use <servlet-class>BigServlet</servlet-class> instead of <jsp-file> then the
result of request.getServletPath(), invoked inside BigServlet, is "big/servlet/".Why I can't get path from <servlet-mapping> inside jsp file?
Inside my web.xml:
<servlet>
<servlet-name>bigServlet</servlet-name>
<jsp-file>big_common/_getdata.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>bigServlet</servlet-name>
<url-pattern>big/servlet/*</url-pattern>
</servlet-mapping>
The problem is when I'm trying to invoke request.getServletPath() inside _getdata.jsp, because it returns path:"/big_common/_getdata.jsp". But when I use <servlet-class>BigServlet</servlet-class> instead of <jsp-file> then the
result of request.getServletPath(), invoked inside BigServlet, is "big/servlet/".Why I can't get path from <servlet-mapping> inside jsp file?