개발자 공부 업무 정보/JAVA

java request 안의 모든 parameter 확인하기

회님 2020. 2. 18. 10:24
반응형

Enumeration params = request.getParameterNames();

System.out.println("----------------------------");

while (params.hasMoreElements()){

    String name = (String)params.nextElement();

    System.out.println(name + " : " +request.getParameter(name));

}

System.out.println("----------------------------");



ex) answer [


----------------------------

cmd : coop

subcmd : coop_sub

idx : 14373

check_date : 2020-02-01

parent_id : 2796

item_id : 274

send_state : 2

----------------------------



]

반응형