Thursday, August 03, 2006

How to extract a list values from URL

Assuming you are using java servlet, here is a simple method:

Sample:
http://localhost:8080/extract.do?ist=val1&ist=val2

for(String ist:req.getParameterValues("ist")) {

System.out.println("ist: " + ist);

}

0 Comments:

Post a Comment

<< Home