Newsletter |
How to Retrieve Client Input Data in Servlet
Servlets » on Jan 14, 2013 { 5 Comments } By Sivateja
When client send some input data to the servlet, that data will be available in the form of request object. We can retrieve that input data through HttpServletRequest or ServletRequest interfaces. There are 4 approaches to retrieve the client data which is present in request object.
- public String getParameter(“input variable”);
- public Enumeration getParameterNames();
- public Map getParameterMap();
- public String[] getParamterValues(“input variable contains muliple values”);
All these methods are present in javax.servlet.ServletRequest interface, and HttpServletRequest is the sub interface of ServletRequest, ok let us see how to use these methods with an example 🙂
You Might Also Like
::. About the Author .:: | ||
Comments
5 Responses to “How to Retrieve Client Input Data in Servlet”
Its really marvelous explanation. I have not yet come across any other website which explains in such a friendly way. No words , just i could say WOWWWWWW
Really nice explanation and very good website for beginners. Could you please add JSP topics to this website.
Can you please explain more..
u gave vry good explaination but with every explanation give example also which can be better unstandable for every one and easily can use.
please update "JAVA SERVER PAGES-JSP" CONCEPTS ,you are doing great ,no one is like u..pls update jsp