I have developed a web based application using STRUTS 2.0 and I want to deploy it.I want to deploy two or more different instances one for user testing and one for production etc. I want to add namespace like my URL must be
http:\mysitename\abc\development\login.jsp for development environment
http:\mysitename\abc\testing\login.jsp for testing environment.
I was thinking to create seperate copy of my project one for testing ,one for development and so on.
But can I do something like just add the name like development or testing in the URL so that it can be easy to identify which environment is running.and I wont need to change the images path and css files path in my project.
Something like editing my struts.xml or web.xml
Thanks in advance
You can deploy it different application context instead. Like
http://host/devandhttp://host/test/for doing this you don’t need to do anything special in your config files. You could generate war with names dev.war or test.war (or rename it) and then deploy it.