tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Tomcat6 - Context - aliases
Date Mon, 09 Apr 2012 15:27:40 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Léa,

On 4/9/12 6:12 AM, Léa Massiot wrote:
> 1) We don't agree with each other. I *DO* care about what URLs look
> like: a) in general, b) for some reasons related to the user's
> speaking language, c) for search engines, d) ... The URL of a link
> can be seen in many circumstances and is used in various ways both
> by humans and bots.
> 
> 2) I want the resources (files and other things like databases) to
> be stored outside the servlets container and more precisely on
> another partition, especially if data get erased when the context
> which contains them is undeployed!

If you want to control the URL and the location of your files, why
don't you just write a simple file-fetching servlet? They are
dead-simple to write: then you have complete control over both URL and
location of files, and you don't have to worry about your uploaded
files being deleted because you can store them completely
independently of your webapp's deployment directory(ies).

Also, it will work across all versions of all servlet containers, and
you don't have to rely on some vendor-specific configuration.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+C/+wACgkQ9CaO5/Lv0PCkbgCfX0J8o/F6Dfx30QWeNwWR++jO
KC0AoLL6v3w04tmsag+ahHcib6b83Lc4
=bWUL
-----END PGP SIGNATURE-----

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


Mime
View raw message