Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

properties file exception

 
raj baig
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i am using properties file in jsp.And i stored this properties file in
classes folder but it is givine me the FileNotFound Exception
my code is:


i also placed prop file in my app folder.
can you tell me the mistake.
 
raj baig
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if i give the complete path it is fine working like
c:\\tomcat\web\app\WEB-INF\classes\xxx.prop

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic