This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Servlets and the fly likes Obtain Get Parameters using HttpServletRequest Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Obtain Get Parameters using HttpServletRequest" Watch "Obtain Get Parameters using HttpServletRequest" New topic
Author

Obtain Get Parameters using HttpServletRequest

Abiodun Adisa
Ranch Hand

Joined: Jan 17, 2002
Posts: 495
Please how do i obtain the value for name from this URL http://localhost:8080/search?name=Hello using the HttpServletRequest
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

See:
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletRequest.html#getParameter(java.lang.String)


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
sudhir nim
Ranch Hand

Joined: Aug 29, 2007
Posts: 212



[Servlet tutorial] [Servlet 3.0 Cook Book]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Obtain Get Parameters using HttpServletRequest