dcsimg

How do I deal with multi-valued parameters in a servlet?

John Zukowski

Instead of using getParameter() with the ServletRequest, as you would with single-valued parameters, use the getParameterValues() method. This returns a String array (or null) containing all the values of the parameter requested.