Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / tulasi vani

To get the multi-valued parameters in servlet we can use
getParameterValues().
request.getParameterValues() which returns an array of
values which are associated with it.

Use an Enumeration to store the values.It has two methods
namely hasMoreElements()which is used in a while loop
which executes unitl it finds another element in the
enumeration and hasNext()which is again used in a while
loop and executes until it has a nextElement and retrives
the required data.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between java beans & servlets?

998


What do you mean by cgi and what are its drawbacks?

930


Why are servlets used?

986


what do you understand by url rewriting?

900


What is servlet configuration?

1001


How is an application exception handling is done using a servlet?

956


Who is responsible for writing a constructor?

1205


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

1111


Describe servlet?

982


Which exception is thrown if the servlet is not initialized properly?

976


What is difference between jsp and servlet?

1120


What are the types of servlets? Explain

1196


What is servlet looping or chaining?

1073


How do you run a servlet?

1011


What is servlet api used for conneting database?

1170