File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes web.xml question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "web.xml question" Watch "web.xml question" New topic

web.xml question

Anthony Smith
Ranch Hand

Joined: Sep 10, 2001
Posts: 285
Suppose you all have values in your web.xml, that change based on when you are in production or an development enviornment. I know that currently have a production and a development xml we make one of those the web.xml using ANT and depending on what command we have. Is there a better way to do this? Say having one web.xml and some other way.
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33098

Take a look at this thread. Murat had a very similar question recently.
I like the properties file approach because it guarantees you have the same code (and deployment files) in production as development.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: web.xml question
It's not a secret anymore!