Results 1 to 2 of 2
- 11-14-2007, 04:48 AM #1
Member
- Join Date
- Nov 2007
- Posts
- 1
- Rep Power
- 0
Reading a properties file using resource bundle.
Hello Friends,
I have a problem in reading a resource bundle.
I have a properties file with elements
driver=oracle.jdbc.driver.OracleDriver.
url=jdbc:oracle:thin:@csc-3far0699:1521:tibco.
username=scott.
password=tiger.
It is reading fine with resouce bundle. But i retrived the keys using getkeys() into an Enumeration keys. When I looped it with keys.hasNextElement() and in loop Iam printing keys.nextElement()......it is looping infinitly by printing only the key username.
for(Enumeration keys=bundle.getKeys();keys.hasMoreElements();)
{
System.out.println(keys.nextElement());
}
- 02-27-2009, 12:23 PM #2
Member
- Join Date
- Feb 2009
- Posts
- 1
- Rep Power
- 0
Similar Threads
-
Reading a properties file
By peiceonly in forum New To JavaReplies: 7Last Post: 05-06-2010, 05:17 PM -
How to getvalue from properties file into JSP
By jaga in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 04-04-2008, 08:00 AM -
Reading web applicaiton properties from JSP/Servlet
By Java Tip in forum Java TipReplies: 0Last Post: 01-30-2008, 09:56 AM -
Setting the label of radio buttons from Resource bundle
By rajeeshankar in forum JavaServer Faces (JSF)Replies: 0Last Post: 12-17-2007, 09:23 AM -
doubt about language .properties file
By tommy in forum Advanced JavaReplies: 1Last Post: 07-31-2007, 02:38 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks