From: "liooil " <[EMAIL PROTECTED]>
> What would be the best pratice to get properties from an external file?
> (I mean this file is not part of my war).
> I'd like it to be read on servelt startup and properties to be be
> available in servlet context ...
> I though about a struts plugIn , but it seems a bit heavy solution.

You can write a ContextListener and configure it in web.xml.  I have one
that retrieves things from the database and places them in Application
scope.  You could read from a .properties file, or do anything you need to
do when the app starts up.

-- 
Wendy Smoak


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to