tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: AW: Using Tomcat API to save single files into a wep app - No redeploy
Date Mon, 01 Oct 2007 14:11:05 GMT
Hash: SHA1


Iannetti, Gabriele wrote:
> now I know it's up to use pure Java API for this,
> and unfortunately not the servlet engine API.

The servlet API doesn't have anything in it that doesn't have to do with
serving dynamic requests. I'm not sure what you were looking for.

> So I have to use a web server to automate the process of storing files for my purpose.

Not necessarily. You can still use Tomcat. You just need to (as many
others on the list have asked about and ultimately implemented) write a
servlet that can serve your uploaded content for you. Just upload the
files into some other directory, and then have your servlet read them
out of that directory. Feel free to use additional paths, etc. (meaning
that you don't need to put every single file in a flat directory).

You should be able to change your "other API" to use a URL that does a
loop-back request to Tomcat asking for the files, rather than a URL that
points to a file on the disk.

Hope that helps,
- -chris

Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla -


To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message