
February 20th, 2013, 11:45 AM
|
 |
Contributing User
|
|
Join Date: May 2004
Location: Superior, CO, USA
|
|
|
Most servlet containers automatically reload the app with a change to web.xml. Static resources like .css, .html, etc. would be available after a browser refresh with no action from the servlet container (usually - some do some internal caching). Some servlet containers will watch the "classes" directory for changes too.
The advantage of that is that, for development, you don't have to do a full app reload. I would not want this to happen for production. If I made a typo or if my webapp didn't reload correctly I could easily take down the production system. However, if just anyone can change your web.xml in production you have more serious issues.
The file system can be exposed - this is an "exploded" war file format. Otherwise it can be in a .war file as you indicated. Traditionally an exploded war file is used in development while a normal war file is used in production.
__________________
Need Java help? Want to help people who do? Sit down with a cup of Java at the hotjoe forums.
|