File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: virtual hosting multiple sites with one web-inf?