• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Q on url mappings

 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a url mapping defined in my web.xml for my servlet servlet1.
/mypath/servlet1/*.html
/mypath/servlet1/*.jsp
/mypath/servlet1/*.do

I also use a context path of "myap".

So, the url used from the browser looks like:
http://www.mycompany.com/myapp/mypath/servlet1/index.html

I am trying to get this mapping to work such that the user can just type in
http://www.mycompany.com/myapp/mypath/servlet1 and it would work.

So, I added the following to the above defined url mappings in web.xml:
/mypath/servlet1

Now www.mycompany.com/myapp/mypath/servlet1 works from the browser but
www.mycompany.com/myapp/mypath/servlet1/index.html doesn't any more.

What gives?

Thanks much!
Prema
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
At what place is precisely your index.html(directory structure) and could u please give the entire mapping you have done in web.xml.
 
You have to be odd to be #1 - Seuss. An odd little ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic