On 02/04/2012 16:14, Léa Massiot wrote: > > 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.
Please define 'inside'. Does the application need to perform an internal forward, or does the client just need to be able to request the URL for the resource? In the latter case, put a Context file in: tomcat/conf/Catalina/$hostname/$alias.xml <?xml version='1.0' encoding='UTF-8'?> <Context docBase="/path/to/d1"> </Context> p > I created a "META-INF/context.xml": > > <?xml version='1.0' encoding='UTF-8'?> > <Context aliases="/<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-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > -- [key:62590808]
signature.asc
Description: OpenPGP digital signature