用java struts获得 请求地址 url


Map map = this.getRequest().getParameterMap() ;

		Set<String> set = map.keySet(); 
		  for (String s:set) {
			  
			String[] ss=   (String[]) map.get(s)  ;
		   System.out.println(s+","+ss[0]);
		  }
		
String uri = this.getRequest().getServletPath() ;
  

你可能感兴趣的:(struts)