users@glassfish.java.net

Re: where to put properties file

From: <glassfish_at_javadesktop.org>
Date: Thu, 19 Nov 2009 13:53:16 PST

Under glassfish_home\domains\domain1\applications\j2ee-modules\
Create a folder called "whatever" name
Put you properties file there

In JSP, when you want to access this file, use this code

String propertiesfile = new File(application.getRealPath("/")).getParent() +
                        File.separator + "whatever" +
                        File.separator + "your_property_file.properties";

Note: the j2ee-module folder will be created only after you deployed your application
Note: I did this in glassfish version 2
[Message sent by forum member 'houston_dragon' ]

http://forums.java.net/jive/thread.jspa?messageID=372596