In previous project I had property file on server (contains database URL & Password etc..) I was retrieving values from file using following code.
What you are doing is put file name in servlet init parameter like this
<servlet>
<init-param>
<param-name>filename</param-name>
<param-value>"<actual nameof file>"</param-value>
</init-param>
</sevlet>
Now in your init you get just name of file & read it anywhere else.
Hope I understand & this help.
SCJP 1.4
SCWCD
SCJP, SCWCD, SCBCD, SCJD, BB Java2 and JSP1.1