Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Properties file

 
Remo Fernandez
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Tomcat4.1 + JSP
 
danny liu
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Danny,really helped.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic