This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Regarding Resource Bundle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Regarding Resource Bundle" Watch "Regarding Resource Bundle" New topic
Author

Regarding Resource Bundle

srinibadri Srinivasan
Greenhorn

Joined: Aug 24, 2005
Posts: 4
Hi Friends,
I have a doubt with respect to custom Resource Bundle?i.e creatingo our own resource bundle class.

In the API they have specified that if you want to create custom Resource Bundle,you should extend the Resource Bundle class and then override two APIS

i.e handleGetObject() and getKeys() method...

My doubt is when this handleGetObject() and getKeys() method are invoked?I have never seen a call to these two methods in some of the sample which I have seen ...

Please clarify me on this topic....

Thanks in advance
Scheepers de Bruin
Ranch Hand

Joined: Jul 19, 2005
Posts: 99
What is the fully qualified name of the class you're trying to extend?

I could not locate any "resource bundle" class in the Struts source...


We're doomed!!<br />Yay!!!<br />No that's bad Girr!!<br />Yay!!!
srinibadri Srinivasan
Greenhorn

Joined: Aug 24, 2005
Posts: 4
No.. it is not related to struts....it is a normal java api...

it is java.util.ResourceBundle....

We can extend the java.util.ResourceBundle class and write our own custom ResourceBundle for our usage
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Regarding Resource Bundle
 
Similar Threads
Doubt on "=="
Overriding Message Bundles in JSF 2.x
3 Features of Java for Internationalization
A Strange behavior about Java Resource Bundle
Doubt in ResourceBundle