假如该页面是http://a.jsp,,
如何在a.jsp使用一个变量得到该url,即http://a.jsp
request.getRequestURI()能够得到本页面的相对路径
用你的例子即"a.jsp"
用javascript就可以得到
alert(window.location.href);
request.getRequestURL()
假如该页面是http://a.jsp,,
如何在a.jsp使用一个变量得到该url,即http://a.jsp
request.getRequestURI()能够得到本页面的相对路径
用你的例子即"a.jsp"
用javascript就可以得到
alert(window.location.href);
request.getRequestURL()