
Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com
Hmm.. I wasn't clear with my question...
I suppose I could reference the external files directly
(c:\commondir\commonfile.jsp) but that wouldn't be very portable and it
would be a pain to maintain...
So I'm wondering if there is a way (following best practices as much as
possible) to create a directory mapping which I could use as a
reference to the directory from all applications running on the same
server.
What I need is a clue of where to define such a mapping (JNDI, server
variable, config file ????).
Thanks !
Roedy Green - 25 Aug 2005 06:52 GMT
>What I need is a clue of where to define such a mapping (JNDI, server
>variable, config file ????).
That could be just a list of directory names or perhaps more
conveniently Files pointing to Dirs.
That could be just a little class of static finals. If you want to
get fancy you could back it with a Properties file.
I am a big fan of using Java source itself for scripting rarely
changed configuration files. You get excellent error checking,
extreme flexibility, computation and no parsers to write.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com
Andrew Thompson - 25 Aug 2005 07:58 GMT
> Hmm.. I wasn't clear with my question...
>
[quoted text clipped - 4 lines]
> So I'm wondering if there is a way (following best practices as much as
> possible) to create a directory mapping
ServletContext.getRealPath("/");
ServletContext.getRealPath("/commondir/commonfile.jsp");
HTH

Signature
Andrew Thompson
physci.org 1point1c.org javasaver.com lensescapes.com athompson.info
"Get off your f**kin cross. We need the f**kin space to nail the next fool
martyr."
Tool 'Eulogy'