Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Welcome files

 
MaheshS Kumbhar
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ankit Garg
Sheriff
Posts: 9519
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic