Hi, Carline. You answered the question already. As a database is out of the question, and the files must be downloadable (no database, no WEB-INF subdirectory) you need the filesystem, preferrable inside your webapp but outside of WEB-INF. Just pick a directory.
If your superior does not agree, then ask him where else to store the files. Or pick /dev/null. (sorry, read too much of BOFH...) Hiran ----------------------------------------- Hiran Chaudhuri SAG Systemhaus GmbH Elsenheimer Straße 11 80867 München Phone +49-89-54 74 21 34 Fax +49-89-54 74 21 99 > -----Original Message----- > From: Caroline Jen [mailto:[EMAIL PROTECTED] > Sent: Mittwoch, 13. Oktober 2004 19:29 > To: Struts Users Mailing List > Subject: RE: Where Is the Best Place To Store Files? > > The files are supposed to be read-only and downloadable. > > If I store files in the WEB-INF folder, then, the folder > won't be an accessible directory from html pages. I have to > read the content via streams and send it to the browser. That > would be too much overhead. > > I am already told by my superior "do not save those files > into the database". > > What should I do? > --- Ivan Vasquez <[EMAIL PROTECTED]> wrote: > > > Unless the tomcat server(s) has fileserver capabilities, you can > > create an NFS mount to a fileserver share and have your code create > > Files there. > > > > Better yet (IMO), store them in the database as BLOBs so > all your data > > lives at a single location. The decision depends on what > use is given > > to those files (are they likely to be modified? ready only? etc) > > > > -----Original Message----- > > From: Caroline Jen [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, October 13, 2004 11:30 AM > > To: [EMAIL PROTECTED] > > Subject: Where Is the Best Place To Store Files? > > > > I am using the Struts to build a web application. I am > going to store > > some files (the files can be .doc, .txt, .pdf, .jpg, > whatever) on the > > server; e.g. > > somewhere in my web application. > > > > Where is the proper and best place to store files? > > $TOMCAT\webapps\MyApplication\???? > > > > Thanks for suggestions. > > > > > > > > _______________________________ > > Do you Yahoo!? > > Declare Yourself - Register online to vote today! > > http://vote.yahoo.com > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > > > > > _______________________________ > Do you Yahoo!? > Declare Yourself - Register online to vote today! > http://vote.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]