aspose file tools*
The moose likes Tomcat and the fly likes virtual hosting multiple sites with one web-inf? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "virtual hosting multiple sites with one web-inf?" Watch "virtual hosting multiple sites with one web-inf?" New topic
Author

virtual hosting multiple sites with one web-inf?

daniel schulken
Ranch Hand

Joined: Sep 23, 2000
Posts: 34
is it posibable to virtual host multiple sites that point to differnt jsp and other assets but use the same code in one location? Or would the code have to be spread to all the other virtual host to?
Tim Baker
Ranch Hand

Joined: Oct 04, 2003
Posts: 541
i don't see why you can't deploy a servlet to tomcats lib folder and then setup individual mappings in web.xml in different contexts and make the servlet use getRealPath to get files local to each context.


Kim Jong II (North Korea's Dear Leader) said:Nuclear weapons don't kill people, people kill people.
 
Consider Paul's rocket mass heater.
 
subject: virtual hosting multiple sites with one web-inf?
 
Similar Threads
Virtual Host
Hosting Tomcat from a subnetted network
Apache-Tomcat Multiple virtual host
What is Tomcat virtual host, What is different from the Apache Tomcat?
host name from an IP