This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell 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


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