Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Extracting Query String from URL

 
Satyajeet Kadam
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 312
Java MS IE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please use the Servlet API, HttpServletRequest.getParameterValues.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic