The Servlet2.4 specification says that the welcome files specified in the DD (see below) should not have any leading or trailing slashes. HFS jokingly says (page 590) "bad things will happen" if we violate the rule.Yet putting a leading slash works fine with tomcat 5.x and the page shows up fine.
My question is: what is the "bad thing" that can happen? Does it mean that the web-app would not be portable?
Hi Debashish, I like your approach of daring the spec. But, for the exam, just follow the spec because the whole aim of the spec is to free your codes from been vendour specific. If one follow the spec, your codes are guarranty to run on any web container. May be try moving the same code to another container, it might just blow up. For the exam, the spec is the master. Hope it's help.