Create x outside of webapps and create a soft link within webapps that points to x. Then, within server.xml add the following lines: <Context docBase="absolute path to x soft link" path="link name" allowLinking="true"/>
That's it. Everytime the soft link is hit, tomcat will follow the symbolic link get the appropriate requested file under x. On 9/27/05, Thomas Corte <[EMAIL PROTECTED]> wrote: > Hi, > > Leon Rosenberg wrote: > > > setup X as context/webapp (incl. an empty WEB-INF) and probably a > > web.xml. this should be sufficent, unless you have something else > > badly broken :-) > > So you mean I should create a second web app/context Y and put the > uploaded files there? > If this is the suggestion, it would create new problems: > > - The upload code in X would have to use absolute paths to point > to directories within the reach of Y. > - I didn't mention it before, but access to parts of the uploaded > content, as well as to the upload form itself, must be restricted > by a sign-on process implemented in webapp X. > However, if the content is served by another webapp Y, this would > prove difficult since there is no session sharing across webapps, is > there? > > -- > Thomas Corte > [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Pham Tran Quoc Viet --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]