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

Servlet is pure java object or not?

1192


What is a web container and what is its responsibility?

979


What is the use of httpservletrequestwrapper?

1092


What is cgi and what are its drawbacks?

1064


What are the annotations used in servlet 3?

1032


If my browser does not support cookie, and my server sends a cookie instance what will happen?

1100


Explain the difference between servlet and cgi?

1161


Is it good idea to create servlet constructor?

1249


what is servlet chaining?

1090


What are the new features added to servlet 2.5?

1094


What is lazy loading and what is Generic Servlet Class?

1075


What is the type of method for sending request from http server?

1104


I Have A Plan to develop a Project in Struts,I want the template of struts project with Hibernate.Canany body provide me the required information?

2691


What is servlet collaboration?

1142


How can the referrer and the target urls be used in servlet?

1006