How to deal with multi-valued parameters in a servlet?

Answer Posted / janet

Use the getParameterValues() method. This returns a String
array(or null) containing all the values of the parameter
requested.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List some life cycle methods of a servlet.

805


What’s the difference between sendredirect and forward methods

847


Why servlet is mostly used?

980


How do you create a cookie using servlet?

865


What’s the use of the servlet wrapper classes??

860


What is the difference between the servlets and cgi programs?

760


Explain the custom jsp tags and the beans.

811


hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code

2537


What methods do you use in servlet - applet communication?

824


How to upload a file to the server using servlet?

762


What is the default http method in the servlet?

1029


How the typical servlet code look like ?

898


What do you mean by singlethreadmodel interface?

816


request parameter how to find whether a parameter exists in the request object?

798


When servlet object is created?

832