tags:

views:

45

answers:

1

I have a war that also needs to server jsp's from alternative external directories. In weblogic this is acheved with virtual directory mappings.

Is their a clean way to acheive this with Tomcat

+1  A: 

Depends of the case:

  • If the entire context is in an external directory, you can have a context xml file that points at that directory(docBase="/external/directory")
  • If you have an open deploy (not war file) on any unix system, you can have a symbolic link to the external directory. Notice that redeploys may ruin this.
  • If you want just a single directory and doesn't want to (or can't) use symbolic links, the the answer is no.
David Rabinowitz