大龙的博客

常用链接

统计

最新评论

获取当前jsp页面名的方法

<%
...
getServletConfig().getServletContext().getRealPath(request.getServletPath()); //returns file name and path
...
%>
<%
...
application.getRealPath(request.getServletPath()); //returns file name and path
...
%>
<%
...
this.getClass().getName(); //returns the class name
...
%>

posted on 2011-07-16 10:15 大龙 阅读(321) 评论(0)  编辑 收藏 引用


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理