Mah*_*leh 6 jsp jstl el
我想使用JSP或JSTL获取当前页面名称(类似"myPage").我怎样才能做到这一点?
Bal*_*usC 16
你可以得到它HttpServletRequest#getServletPath().
HttpServletRequest#getServletPath()
${pageContext.request.servletPath}
您可以使用JSTL函数 taglib在必要时提取扩展.
归档时间:
14 年,8 月 前
查看次数:
20966 次
最近记录:
13 年,2 月 前