wood burning stoves 2.0*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes welcome-file-list Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "welcome-file-list" Watch "welcome-file-list" New topic


wrushasen dakhane
Ranch Hand

Joined: Sep 25, 2006
Posts: 47

welcome-file with "/" is valid in the above element?

SCJP 1.4, SCWCD 1.4
Christophe Verré

Joined: Nov 24, 2005
Posts: 14687

No, it only accepts filenames. No trailing and no leading "/".

[My Blog]
All roads lead to JavaRanch
Niranjan Deshpande
Ranch Hand

Joined: Oct 16, 2005
Posts: 1277
while we are on that topic what about the error page tag ?

<location> </location>
<location> </location>

does the location need to start with slash ? also one more thing,
can a SERVLET be a hanlder instead of JSP. i believe the answer is YES.
but do we need to this for the exam ? - Mannig's book page 102 onwards has this information !

SCJP 1.4 - 95% [ My Story ] - SCWCD 1.4 - 91% [ My Story ]
Performance is a compulsion, not a option, if my existence is to be justified.
Christophe Verré

Joined: Nov 24, 2005
Posts: 14687

(I think you should have started a new thread, as this is not related to welcome files )

Concerning errors, the value of the location must have a leading �/'.
It can accept mappings to servlet.

do we need to this for the exam

You have to remember that it must start with a '/'
jQuery in Action, 2nd edition
subject: welcome-file-list
Similar Threads
Server Error
Qn on welcome-file-lsit tag
Changing index.html to home.jsp on Tomcat 5
default servlet??