Re: where to store user-generated files?

2007-02-21 Thread John Pedersen
I have something that works: in web.xml: imageServlet ImageServlet 2 imageServlet /users/image/* Links to user images are like this: ( I am using Velocity ) and this is the servlet: public class ImageServlet extends HttpServlet { public void do

RE: where to store user-generated files?

2007-02-21 Thread Williams, Allen
Got it. I'll also get the spec. Thanks to you and Dave! -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 21, 2007 10:51 AM To: Tomcat Users List Subject: RE: where to store user-generated files? > From: Williams, Allen [mailt

RE: where to store user-generated files?

2007-02-21 Thread Caldarale, Charles R
> From: Williams, Allen [mailto:[EMAIL PROTECTED] > Subject: RE: where to store user-generated files? > > So, servlets can access the file system just like any other > java or C++ program? Yes - they're just part of the Tomcat process. > If tomcat is running as user to

Re: where to store user-generated files?

2007-02-21 Thread David Smith
.xml,...?) that resolves, or translates "ThisTypeofFileName.ext" into >"/real/path/in/OS/ThatTypeOfFileName.oxt"? > > >-Original Message- >From: John Pedersen [mailto:[EMAIL PROTECTED] >Sent: Wednesday, February 21, 2007 4:37 AM >To: Tomcat Users

RE: where to store user-generated files?

2007-02-21 Thread Williams, Allen
arles R [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 21, 2007 9:50 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: where to store user-generated files? > From: Williams, Allen [mailto:[EMAIL PROTECTED] > Subject: RE: where to store user-generated files? > > Doesn

RE: where to store user-generated files?

2007-02-21 Thread Caldarale, Charles R
> From: Williams, Allen [mailto:[EMAIL PROTECTED] > Subject: RE: where to store user-generated files? > > Doesn't there have to be a mapping or alias somewhere (server.xml, > web.xml,...?) that resolves, or translates > "ThisTypeofFileName.ext" into > &quo

RE: where to store user-generated files?

2007-02-21 Thread Williams, Allen
S/ThatTypeOfFileName.oxt"? -Original Message- From: John Pedersen [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 21, 2007 4:37 AM To: Tomcat Users List Subject: Re: where to store user-generated files? Looks like roll your own then! A few thoughts on the matter - maybe someone co

Re: where to store user-generated files?

2007-02-21 Thread John Pedersen
Looks like roll your own then! A few thoughts on the matter - maybe someone could add to them? It should be easy to map requests for images to a servlet, which can then find the appropriate image file wherever it might be ( within or outside the server ). Like this in the web.xml file:

RE: where to store user-generated files?

2007-02-20 Thread Williams, Allen
ailto:[EMAIL PROTECTED] Sent: Tuesday, February 20, 2007 11:42 AM To: Tomcat Users List Subject: RE: where to store user-generated files? > From: Williams, Allen [mailto:[EMAIL PROTECTED] > This is probably a dumb question, but: I looked at > bodington- are you referring to a course or

RE: where to store user-generated files?

2007-02-20 Thread Peter Crowther
> From: Williams, Allen [mailto:[EMAIL PROTECTED] > This is probably a dumb question, but: I looked at > bodington- are you referring to a course or to downloading > their system and going > through their code to see how they did it? I'm referring to going through their code - *if* you can face

RE: where to store user-generated files?

2007-02-20 Thread Williams, Allen
. Subject: RE: where to store user-generated files? Date: Tuesday 20 February 2007 08:18 From: "Peter Crowther" <[EMAIL PROTECTED]> To: "Tomcat Users List" , [EMAIL PROTECTED] > From: John Pedersen [mailto:[EMAIL PROTECTED] > Maybe I am asking too much ( I chose a long ti

RE: where to store user-generated files?

2007-02-20 Thread Peter Crowther
> From: John Pedersen [mailto:[EMAIL PROTECTED] > Maybe I am asking too much ( I chose a long time ago not to store > images and large files in the db - just store names and urls - maybe > this was a poor choice.) A lot depends on your environment. For small projects I tend to store in database

Re: where to store user-generated files?

2007-02-20 Thread John Pedersen
Thanks for the reply. Can you provide any more details as to how to go about this. I have googled quite a bit - I would have thought that this is quite a common requirement, but I don't see references to it. I should mention that some of the files are images that the users upload, and need to be

Re: where to store user-generated files?

2007-02-16 Thread Mikolaj Rydzewski
John Pedersen wrote: I have an app that generates some big, expensive-to-create files. Where can I store these files, so that they aren't destroyed when I reload or redeploy, and still get allow users to access them via Tomcat? Store them outside of Tomcat directory tree and access them either b

where to store user-generated files?

2007-02-16 Thread John Pedersen
Hi, I have an app that generates some big, expensive-to-create files. Where can I store these files, so that they aren't destroyed when I reload or redeploy, and still get allow users to access them via Tomcat? Thanks, John Pedersen