• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to access string resources (.properties entries) from inside a servlet ?

 
raminaa niilian
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Thank you for reading my post.
how i can retrieve some string resources from my bundle.properties file?
the file is located in : servlet/bundle.properties
I want to retrieve some of its key and use them inside the servlet java file.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're doing it a ResourceBundle, you'll need to move the file to a directory where your server can see it.

See:
http://wiki.apache.org/tomcat/HowTo#head-45c3314139cb900ddd43dde2ff671532e6e844bc
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic