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

What is the effective way to make sure all the servlets are accessible only when user has a valid session?

561


What is the functionality of actionservlet and requestprocessor?

589


What is webservlet?

527


Why is http protocol called as a stateless protocol?

530


What is api in servlet?

512






What are the types of protocols supported by httpservlet ?

697


List out difference between a JavaBean from a Servlet?

559


What is ServletConfig object?

601


How a servlet is unloaded?

585


How to handle exceptions thrown by application with another servlet?

606


How does java thread pool work?

540


What are the differences between the servletconfig interface and the servletcontext interface?

572


What is the servlet?

613


why we should override only no-agrs init() method.

671


What is the difference between context parameter and context attribute?

527