[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tomcat-user
Subject:    RE: Accessing Files outside of WebApp
From:       "George Sexton" <gsexton () mhsoftware ! com>
Date:       2006-01-11 19:35:59
Message-ID: 20060111193605.B9F444DEBC () mail ! mhsoftware ! com
[Download RAW message or body]

What I do for my application is creat a URL mapping 

/binaries/*

That maps to a servlet that then reads the files from the source directory,
and transmits them out the OutputStream.

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

> -----Original Message-----
> From: Zach Moazeni [mailto:zacharooni@yahoo.com] 
> Sent: Wednesday, January 11, 2006 12:16 PM
> To: Tomcat Users List
> Subject: Accessing Files outside of WebApp
> 
> Hello,
> 
>     In our current application I need to link to a file that resides 
> outside of the webapp directory. On another application we 
> allowed the 
> users upload files and stored them in the webapp directory, 
> which made 
> deployment a royal pain. This time we are storing the files in a 
> location external to Tomcat, however I need to let the users click a 
> link so they can download and open the file. I'd rather not 
> "copy over" 
> the file to a tmp directory from which they download.
> 
>     In Apache there was something like <Location>, is there something 
> like that in Tomcat?
> 
> Thanks for any input.
> -Zach
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 


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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic