• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Grabbing the path and arguements

 
Daniel Prene
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How would I grab the path and arguments?
for example, if a user clicked on a link that sent him to a page like this:
http://localhost:8080/ssi/fc?obj=rfp&cmd=myRFP&nextPage=RFP_MyRfp.jsp
how would I dynamicaly grab the information and append another argument on it?
 
David Ulicny
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
request.getParameter(paramName);
 
Daniel Prene
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need all of them, and the exact path that was entered to get to the page
 
David Ulicny
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check also these methods in the API

request.getPathTranslated();
request.getPathInfo();
request.getParameterNames();
request.getParameterMap();
 
Daniel Prene
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you!
 
ramakrish nan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Daniel Prene:
How would I grab the path and arguments?
for example, if a user clicked on a link that sent him to a page like this:
http://localhost:8080/ssi/fc?obj=rfp&cmd=myRFP&nextPage=RFP_MyRfp.jsp
how would I dynamicaly grab the information and append another argument on it?


answer

request.getQueryString();
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic