aspose file tools*
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
Author

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
internet detective
Marshal

Joined: May 26, 2003
Posts: 29255
    
140

Anthony,
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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: web.xml question
 
Similar Threads
Peculiar problem
Sun JVM and WebLogic JRockit JVM
How to save files outside the webapp folder?
Need help to create mock webService
Refactoring -- extracting hard-coded paths into a properties file for servlets