aspose file tools*
The moose likes JSP and the fly likes Properties file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Properties file" Watch "Properties file" New topic
Author

Properties file

Remo Fernandez
Greenhorn

Joined: Feb 18, 2004
Posts: 18
Hi all,
In my web-app,i wanna use a .PROPERTIES file in conjunction with ResourceBundle for storing some customisable details.
i hav placed this .PROPERTIES file in WEB-INF directory.
but i cant able to use the properties file inside my JSP file.
how can i solve this?.i think it's a common problom.any settings in Tomcat's configuration file?.if so,plz tell me the solution.
all your reply's will be very helpfull.
Remo Fernandez
Greenhorn

Joined: Feb 18, 2004
Posts: 18
I am using Tomcat4.1 + JSP
danny liu
Ranch Hand

Joined: Jan 22, 2004
Posts: 185
It is a path problem. Just put the .property file beneath
/WEB-INF/classes, then your jsp files can find it.
Dan
Remo Fernandez
Greenhorn

Joined: Feb 18, 2004
Posts: 18
Thanks Danny,really helped.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Properties file
 
Similar Threads
Properties file
Load a configuration file
how to use properties file (j2ee+ flex)
Refactoring -- extracting hard-coded paths into a properties file for servlets
Reading property files within a servlet