Hi Christopher,

What does it mean to "extend" an existing file? Replace it or do some
> kind of horrendous merge?


Here is the order of the ressource research :

- Files from my application
- Files from the EDR

If the ressource is defined both in my app and in the EDR directory then
the one from the application has the priority. There is no horrendous merge
;-)

I talk about an extension as you can have exactly the same directory/files
defined in the your EDR and in your application. The main advantage of the
EDR directory is that i can complete my application by adding ressources
(html/jsp/...) without any deployment. This mecanism is used for
application which have a daily contribution for example.

You might be able to build this capability yourself by writing your
> own DirContext and specifying it with a <Resources> element within
> your <Context> element. See
> http://tomcat.apache.org/tomcat-7.0-doc/config/resources.html for details.


This new track looks nice but the documentatino on the subject is a little
short. I'll try to find more information on the subject but if you
have additional
information to tell me, let me know!

Thank you for your support.

On Fri, Dec 2, 2011 at 9:14 PM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Sylvain,
>
> On 11/30/11 8:58 AM, Sylvain Goulmy wrote:
> > These directories are defined as "extension" of my application and
> > another important thing is that i can also extend files which are
> > at the root of my application (as index.html).
>
> What does it mean to "extend" an existing file? Replace it or do some
> kind of horrendous merge?
>
> > After a few more test with Tomcat i understand that :
> >
> > - You cannot "extend" directory, if you define an external location
> > which math an existing directory of your application, the
> > ressources of your application become unreachable.
>
> That sounds about right.
>
> > - As the documentation say "Using '/' as an aliasPath is not
> > allowed.", you cannot extend any ressource which is at the root of
> > your application.
>
> Right: if you alias /, you are essentially deploying another webapp --
> so you should just do that instead.
>
> Tomcat's alias mechanism is intended for use in the case where you
> have a bunch of static content in a separate directory and you just
> want to be able to serve it through the same webapp without actually
> deploying two separate contexts. That's why it works the way it does.
>
> You might be able to build this capability yourself by writing your
> own DirContext and specifying it with a <Resources> element within
> your <Context> element. See
> http://tomcat.apache.org/tomcat-7.0-doc/config/resources.html for details.
>
> - -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/
>
> iEYEARECAAYFAk7ZMaIACgkQ9CaO5/Lv0PDfsgCgjRhQvBbs0DDkCu4ckHZc2Gtl
> ckMAnAuBNfU8UwZyqNfP1JvWX0oDeYAc
> =PL/2
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to