This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Servlets and the fly likes Extracting Query String from URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Extracting Query String from URL" Watch "Extracting Query String from URL" New topic
Author

Extracting Query String from URL

Satyajeet Kadam
Ranch Hand

Joined: Oct 19, 2006
Posts: 215
Q1) My request URL is url: http://localhost:8080/Json/register?action:getReservations. On server side i want to extract string getReservations which is my name of my method in a servlet.To acheive i am writing servlet code



it return me as


How can i get only getReservations String ?
Madhan Sundararajan Devaki
Ranch Hand

Joined: Mar 18, 2011
Posts: 312

Please use the Servlet API, HttpServletRequest.getParameterValues.


S.D. MADHAN
Not many get the right opportunity !
 
GeeCON Prague 2014
 
subject: Extracting Query String from URL