top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

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

0 votes
442 views
How do I deal with multi-valued parameters in a servlet?
posted Nov 12, 2015 by Dominic

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

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.

answer Nov 13, 2015 by Karthick.c
...