JSP获取地址栏地址,作页面跳转用

<%

String   url=request.getScheme()+"://";   

url+=request.getHeader("host");   

url+=request.getRequestURI();   

if(request.getQueryString()!=null)   

   url+="?"+request.getQueryString(); 

out.println(url); 

%>

你可能感兴趣的:(页面跳转)