tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phillip Morelock <subscripti...@phillipmorelock.com>
Subject Re: CrossContext. Is there a easier solution?
Date Thu, 06 Jun 2002 12:35:25 GMT
> 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" <christian@finep.gov.br> 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
> .:| christian@finep.gov.br
> .:| (21) 2555-0332
> 
> 


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message