JSP中取得 Web项目名的方法
JSP中取得 Web项目名的方法:
?
方法一:
<%=request.getContextPath%>
?
方法二:
${pageContext.request.contextPath}
?
推荐使用方法二.
发布时间: 2012-10-13 11:38:17 作者: rapoo
JSP中取得 Web项目名的方法
JSP中取得 Web项目名的方法:
?
方法一:
<%=request.getContextPath%>
?
方法二:
${pageContext.request.contextPath}
?
推荐使用方法二.