【JSP】${pageContext.request.contextPath}

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

Guess you like

Origin www.cnblogs.com/xiangtunmizu/p/11960774.html