How to get page name in JSP or JSTL?

后端 未结 3 485
我寻月下人不归
我寻月下人不归 2021-01-18 01:31

I want to get current page name (something like \"myPage\") using JSP or JSTL. How can I achieve this?

3条回答
  •  滥情空心
    2021-01-18 02:11

    maybe you can get it thought javascript way, like:

    var url = window.location.href;
    

    then use string methods to get current page name.

提交回复
热议问题