• Post Reply Bookmark Topic Watch Topic
  • New Topic

retrieving parameters  RSS feed

 
jacob deiter
Ranch Hand
Posts: 585
  • 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
Posts: 3973
24
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
Boost this thread!