Tuesday 7 October 2008

Get All parameter (key and value)

Enumeration ss = request.getParameterNames();

while(ss.hasMoreElements()) {

String key = (String)ss.nextElement();
String value = request.getParameter(key);
System.out.println(key + " : " + value+"
");
}

// if value is array type such as check box
/*
String test[] = request.getParameterValues("test");

if(test != null) {
for(int i=0; i < test.length; i++) {
System.out.println("test[" + i + "] : " + test[i] );
}
}
*/

3 comments:

Anonymous said...

thanks for the page.

thyte said...

navigate here h8h86b0s75 gucci replica handbags replica bags hong kong try this website x8d51q9f24 replica bags online replica zara bags 7a replica bags philippines see this w5l61o2s38 replica bags bangkok

Unknown said...

m3h51f5h21 x7o93o6l43 r8n79i0n71 s7f64y3j00 s0t19o6y34 q4z12k2d71