Besides mapping URLs to actual servlets, you can use the DD to customize other aspects of your web application including security roles, error pages, tag libraries, initial configuration information, and if it’s a full J2EE server, you can even declare that you’ll be accessing specific enterprise javabeans.
Don’t worry about the details yet. The crucial point for now is that the DD gives you a way to declaratively modify your application without changing source code!
Think about this... it means that even those who aren’t Java programmers can customize your Java web application without having to drag you back from your tropical vacation.
The deployment descriptor (DD), provides a “declarative” mechanism for customizing your web applications without touching source code!
DD Benefits
Minimizes touching source code that has already been tested.
Lets you fine-tune your app’s capabilities, even if you don’t have the source code.
Lets you adapt your application to different resources (like databases), without having to recompile and test any code.
Makes it easier for you to maintain dynamic security info like access control lists and security roles.
Lets non-programmers modify and deploy your web applications while you can focus on the more interesting things. Like how appropriate your wardrobe isn’t for a trip to Hawaii.
There are no Dumb Questions