在JSP页面获取当前项目名称的方法:

方法1: <%= this.getServletContext().getContextPath() %>

方法2: 使用EL表达式(如果不清楚EL表达式是什么,大家可以百度一下)

${pageContext.request.contextPath}

source: http://blog.csdn.net/zhengqiqiqinqin/article/details/8485307

相关文章:

  • 2022-12-23
  • 2021-08-29
  • 2021-11-30
  • 2022-02-24
  • 2022-12-23
  • 2021-05-19
  • 2022-12-23
猜你喜欢
  • 2021-08-11
  • 2022-12-23
  • 2021-11-21
  • 2022-12-23
  • 2021-04-06
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案