I’ve developed a Java EE application.
Now say sample.war is the file. When we port this to Tomcat webapps, it explodes to sample folder. But if we want to run this application for two people, how do we do that? some thing like http://address.com/user1/ and http://address.com/user2/ and in this we have different CSS (only the look varies)
Or can we take two subdomains, and link to the same application with different styles?
Possible solutions:
In the deployment descriptor (web.xml) you can set the deployment target name (default is the .war name).
Rename the .war (user1.war user2.war) and deploy it two times.
Take care of your connections (database / files …) wich are used by the applications.