• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Picking up parameters in the URL

 
Dale DeMott
Ranch Hand
Posts: 515
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Typically my page name and parameter list looks like this...

http://www.mydomain.com/myproject/index.jsp?firstName=Jon

Without parameters obviously it looks like this...

http://www.mydomain.com/myproject/index.jsp

The index.jsp page is registered as the default page. If I wanted to access the site with no parameters I could use this...

http://www.mydomain.com/myproject

if I wanted to use http://www.mydomain.com/myproject with parameters... could I??r would I have to have the index.jsp on the end of it.

Thanks!
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can certainly do this with servlet-mapping in the web.xml file. I'm going to move this to our JSP Forum where they know about such things.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried it?
I would expect the query string parameters to be preserved when forwarded to a welcome page.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic