Remove the deployment of the application name or the name of the current project
http://localhost:8080/demo1/a.jsp
pageContext.request.contextPath {$ } or <% = request.getContextPath ()%> taken out is / demo1
Remove the deployment of the application name or the name of the current project
http://localhost:8080/demo1/a.jsp
pageContext.request.contextPath {$ } or <% = request.getContextPath ()%> taken out is / demo1