We have a web app running locally, so in many jsp's I have references to something like http://localhost:8080/MyApp/index.html. We now want to create a deployment, but it seems inconvenient to go through many files of different languages (html, jsp, xml, etc.) and manually change the localhost URL's to the actual deployment URL - say 192.168.0.4:8080/MyApp/index.html.
What do people do here? Ideally I'd like the option of using both URL's so that I can maintain a local version of the webapp to run on my machine, and also have a deployed machine running on my network. One idea was to use a branch/tag in SVN as the deployment and change the URL's only in that branch. This may work for dev + deploy servers, but is there a more general way to abstract URL's used in a webapp?
Any thoughts would be appreciated!