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
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: virtual hosting multiple sites with one web-inf?