This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 30057
    
149

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
How to save files outside the webapp folder?
Refactoring -- extracting hard-coded paths into a properties file for servlets
Peculiar problem
Need help to create mock webService
Sun JVM and WebLogic JRockit JVM