tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Léa Massiot <lmhe...@orange.fr>
Subject Re: Tomcat6 - Context - aliases
Date Mon, 02 Apr 2012 15:14:54 GMT

Pid * wrote
> Either they did not, or they selected an alternative based on their
> use-case.
I'm sure they did. You'll see below, my requirements are basic.


Pid * wrote
> What is your exact requirement? 
- Users upload files to the server running Tomcat.
- The Webapp stores these file on the hard disk in some directory which has
nothing to do neither with the Webapp nor with the Tomcat engine. Let's name
it "d1".
- I needed an alias for the directory "d1" to refer to it from inside the
Webapp.
  I created a "META-INF/context.xml":

  <?xml version='1.0' encoding='UTF-8'?>
  <Context aliases=&quot;/&lt;an_alias_1>=<d1>">
  </Context>

Of course, it works as expected with "Tomcat7".

I "just" want to do something equivalent which works with "Tomcat6".

Thank you for helping me and best regards.



--
View this message in context: http://tomcat.10.n6.nabble.com/Tomcat6-Context-aliases-tp4678430p4679237.html
Sent from the Tomcat - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message