I am not sure of the benefits of having property file outside the classes folder, though it is secure & straightforward. However I am thinking of other ways that you can try (though I myself feel weird of my suggestions :roll: Again it is classpath - inside a jar file in /web-inf/lib. Otherwise keep it in web-inf/config folder and publish it through a dedicated & secured
servlet other than your controller. If you are using framework like
struts you can do it easily through an action path whose url
pattern is protected from public. (have to try out and see)
If you could share the reason for keeping the property file outside classes folder, it might be useful for others.
[ February 15, 2008: Message edited by: Ray Johnson ]
[ February 15, 2008: Message edited by: Ray Johnson ]
[ February 15, 2008: Message edited by: Ray Johnson ]