aspose file tools*
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
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "welcome-file-list" Watch "welcome-file-list" New topic
Author

welcome-file-list

wrushasen dakhane
Ranch Hand

Joined: Sep 25, 2006
Posts: 47
<welcome-file-list>
<welcome-file>/index.html</welcome-file>
</welcome-file-list>

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


SCJP 1.4, SCWCD 1.4
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

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 ?

<error-page>
<error-code>403</error-code>
<location> </location>
</error-page>
<error-page>
<exception-type>java.sql.SQLException</exception-type>
<location> </location>
</error-page>

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é
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

(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 '/'
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: welcome-file-list