tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
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
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Gabrielle,

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHAP/59CaO5/Lv0PARAsPbAJ0eTw8Ai5GoG0rQygmweE5+rIeVEgCfWOFf
wcKhCMf8NhP9QW2ehq0nTFA=
=RG8V
-----END PGP SIGNATURE-----

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


Mime
View raw message