There are serveral options:

- Define a context with the name images and use something 
  like /images/common/img1.gif to reference them from the 
  other contexts.

- The dirty solution for linux:

  mkdir -p /webcommon/images

  ln -s /webcommon/images /webapp1/images
  ln -s /webcommon/images /webapp2/images
  ln -s /webcommon/images /webapp<n>/images

The first options make sense if you use tomcat stand 
alone, or want to use tomcats authorisation to access the 
images. Normally you wouldn't want to serve images from 
tomcat if you run behind a 'real' webserver.)

- If you run tomcat behind a webserver
  you can solve that by using the same document root
  for all web applications.

> -----Ursprüngliche Nachricht-----
> Von: Christian J. Dechery [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 6. Juni 2002 14:19
> An: [EMAIL PROTECTED]
> Betreff: CrossContext. Is there a easier solution?
>  
> For instance, if I have a webserver and I want all the 
> webapps to look in only one dir for images... how would I do that?
>  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to