Files and Servlets

I need to store database setting in a file on the server so the database can be configured by the client, like in Jive.

I decided to store these setting in a serialized object and place it's result in a file, but I can't seem to find any good file-handling tutorials... Got any?

Is there a safe place where I can store my config file, where all my JSPs can read it? Maybe \WEB-INF\ ?

Do you know of any good file-handling tutorials?

[466 byte] By [SPasmofiT] at [2007-9-26 3:43:33]
# 1

WEB-INF\ is definitely a good place because end users of your applications cannot automatically access it from there using a URL.

For handling property files in general see javadoc for java.util.Properties Specifically for loading property files easily as application resources, see Javadoc for java.util.PropertyResourceBundle and java.util.ResourceBundle

neville_sequeira at 2007-6-29 12:22:24 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...