aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Welcome files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Welcome files" Watch "Welcome files" New topic
Author

Welcome files

MaheshS Kumbhar
Ranch Hand

Joined: Sep 24, 2009
Posts: 188
In order to display the page from when client enters partial URL to directory structure, the file listed in element must physically present in that directory structure. Does this mean the request URL is not fake and reflects actual physical directory structure on server.
Please correct if I have misunderstood the concept.


I am slow but sure
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9321
    
  17

Does this mean the request URL is not fake and reflects actual physical directory structure on server.

Well kind of. If I have a directory named wow with a file named yes.html on my site wowandwow.com and there is a request with a URL wowandwow.com/wow/yes.html, then the yes.html file will be served to user*. But I can easily create a servlet mapped to the URL /wow/*. In that case a request with the URL wowandwow.com/wow/hello.html will be served by the servlet and there is no need for there to be a directory named wow at the root of my web application. So the URL may or may not reflect actual directory structure on the server.

*If I map a servlet or JSP to that url i.e. /wow/yes.htm in my web.xml, then yes.html will not be served automatically.


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Welcome files