Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

virtual hosting multiple sites with one web-inf?

 
daniel schulken
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 541
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic