Win a copy of Microservices in Action this week in the Web Services forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Picking up parameters in the URL  RSS feed

 
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!
 
author and iconoclast
Posts: 24203
40
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.
 
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
Boost this thread!