wood burning stoves 2.0*
The moose likes Servlets and the fly likes Mapping URL's 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 » Java » Servlets
Bookmark "Mapping URL Watch "Mapping URL New topic
Author

Mapping URL's

MaheshS Kumbhar
Ranch Hand

Joined: Sep 24, 2009
Posts: 188
I am new learner to Servlets

Why do we need to first map public URL to Deployment name ie. internal name in DD and then the internal name to actual fully qualified file name?
Why the requirement is made such so?


I am slow but sure
Marco Bartolini
Greenhorn

Joined: Dec 14, 2009
Posts: 8

MaheshS Kumbhar wrote:I am new learner to Servlets

Why do we need to first map public URL to Deployment name ie. internal name in DD and then the internal name to actual fully qualified file name?
Why the requirement is made such so?


it is made to make things easyer , so you can change the source without change the mapping and vice-versa.
Anyway, you don't want people look at the logical structure of your web application, do you?


System.out.print("Hello World! SCJP 5 79% - SCWCD 5 86%");
James Tharakan
Ranch Hand

Joined: Aug 29, 2008
Posts: 580

Marco Bartolini wrote:you don't want people look at the logical structure of your web application, do you?


I am curious to find out what if somebody know the logical structure of the appliction through the URL... how is it going to affect the developer or the application ...
Is it about the security??


SCJP 6
Why to worry about things in which we dont have control, Why to worry about things in which we have control ! !
 
jQuery in Action, 2nd edition
 
subject: Mapping URL's
 
Similar Threads
DD: url-pattern and "/" - explanation please ...
Switching to an XA JDBC driver explodes the console output
Error with error:bean formatKey parameter
Struts Forward Displays Blank Page
Stop/Start Tomcat within eclipse