This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Properties file
 
Similar Threads
Load a configuration file
Properties file
Reading property files within a servlet
Refactoring -- extracting hard-coded paths into a properties file for servlets
how to use properties file (j2ee+ flex)