struts2中獲得request的全部的參數對

  

HttpServletRequest request = ServletActionContext.getRequest();
  
  Enumeration es = request.getParameterNames();
  while (es.hasMoreElements()) {
   String name = (String) es.nextElement();
   System.out.println(name+" = "+request.getParameter(name));
  }get

相關文章
相關標籤/搜索