Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Servlets
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Servlets
Writing in Properties File form Servlet
carina caoor
Ranch Hand
Posts: 300
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi, i have a properties file at WEB-INF/classes folder. I want to add few key value pairs to the existing property file. Can anybody suggest me how do i do this?
I could get the bundle and read the existing key value pair as
ResourceBundle bundle = ResourceBundle.getBundle("MyProperties",Locale.getDefault()); try { String serverName1 = bundle.getString("Code"1); int portNumber1 = Integer.parseInt(bundle.getString("Code2")); }
carina caoor
Ranch Hand
Posts: 300
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Ohh i could solve it.. just write in like a normal file....
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
JSTL "not registered with the PropertyEditorManager" error
Label key value in struts2
resourcebundle
XML reading issues
No suitable driver found for jdbc:oracle:thin:@localhost:1521:Indu
More...