I want to get current page name (something like "myPage") using JSP or JSTL. How can I achieve this?
相关问题
- JSF2 composite cc.attrs expression does not evalua
- #{facesContext} EL expression not resolved at runt
- jsp caching tag library
- JSP template implementation (Composite View Patter
- how to add a list of string into json object in js
相关文章
- jsp里面的画布功能,为什么会出错?求大佬找下问题
- JSP String formatting Truncate
- Forward request from servlet to jsp
- Comparing string and boolean in Expression languag
- JSTL Date comparison
- Passing a Java object value in Custom JSP tag
- Passing a enum value as a tag attribute in JSP
- Application Error: AccessControlException
You can get it by
HttpServletRequest#getServletPath()
.You can use the JSTL functions taglib to extract the extension whenever necessary.
maybe you can get it thought javascript way, like:
then use string methods to get current page name.
To get the page:
and this helper code: