• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

retrieving parameters

 
jacob deiter
Ranch Hand
Posts: 584
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In sent a Link :http://localhost:8080/sampleapp1/someservlet?event=1

at serve I have receive the events' value,how it can be retrieved??
 
Vijitha Kumara
Bartender
Pie
Posts: 3918
10
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use, request.getParameter("event") in the servlet (assuming request, refers to the HttpServletRequest provided by the container).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic