获取项目名称的方法,例如:/hbnAndstruts
1、<%=this.getServletContext().getContextPath() %>
2、${pageContext.request.contextPath }

 posted on 2012-12-23 14:51  Chenyong Liu  阅读(135)  评论(0)    收藏  举报