Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Question on welcome-file-list

 
Leena Diwan
Ranch Hand
Posts: 351
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there!

I know that we use a welcome file
1. to serve the client if she has not typed the URL properly.
2. to serve the client when we just start the web app.

What I do not understand is why more than one files can be welcome-files?

Im finding this as having more than one front main doors to the house!

Thanks in advance

Leena
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Welcome files" are used when a person requests a URL that is actually a directory instead of a file, e.g. http://www.microsoft.com or http://www.microsoft.com/ versus http://www.microsoft.com/index.html.

The reason why you specify as many welcome files as you want is that in some cases some directories may have different welcome files. For example, if your welcome files are "index.jsp" and "welcome.jsp", one directory may have "index.jsp" there, while another only has "welcome.jsp". Etc. Make any more sense now?
 
Leena Diwan
Ranch Hand
Posts: 351
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ya this does make sense.

How would you decide to provide how many welcome files to define?
As many dirs in your sys? That would be redundant!

Cheers!
Leena
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!