CrossContext. Is there a easier solution?

2002-06-06 Thread Christian J. Dechery

As I can see, 
 
and for what I've tried to acomplish, this CrossContext thing is no picnic. It isn't 
easy to apply or use.
Isn't there a easier of doing this?
 
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?
 
.:| Christian J. Dechery
.:| FINEP - Depto. de Sistemas
.:| [EMAIL PROTECTED]
.:| (21) 2555-0332




Re: CrossContext. Is there a easier solution?

2002-06-06 Thread Phillip Morelock

 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?

Actually, in this case at least, it should not matter.

The browser downloads the html page, and then sends subsequent requests back
to the server for images.  You could even put all your images in one context
and have all your other contexts use that for images.  There is no
connection (usually) between the request sent for the page and the requests
sent for each of the images.

The only difference would be if you need to control access to these images,
which it doesn't sound like you need to do.

I would just set up one context for images.  Turn off cookies and such for
this context, so there's absolutely no possibility of collision in terms of
session ID's, etc.  (I don't know if tomcat would send a cookie for a
static request anyhow...).

Hope this helps
fillup


On 6/6/02 5:18 AM, Christian J. Dechery [EMAIL PROTECTED] wrote:

 As I can see, 
 
 and for what I've tried to acomplish, this CrossContext thing is no picnic. It
 isn't easy to apply or use.
 Isn't there a easier of doing this?
 
 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?
 
 .:| Christian J. Dechery
 .:| FINEP - Depto. de Sistemas
 .:| [EMAIL PROTECTED]
 .:| (21) 2555-0332
 
 


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




Re: CrossContext. Is there a easier solution?

2002-06-06 Thread James Williamson

Christian,

If you're on a Un*x platform why not just create sym. links?

Regards,

James Williamson
www.nameonthe.net

Christian J. Dechery wrote:

 As I can see,

 and for what I've tried to acomplish, this CrossContext thing is no picnic. It isn't 
easy to apply or use.
 Isn't there a easier of doing this?

 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?

 .:| Christian J. Dechery
 .:| FINEP - Depto. de Sistemas
 .:| [EMAIL PROTECTED]
 .:| (21) 2555-0332


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




AW: CrossContext. Is there a easier solution?

2002-06-06 Thread Ralph Einfeldt

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 /webappn/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]