Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use one resource bundle in another bundle?

 
gopal kishan
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,
I have a my module resource bundle and common application resource bundle,

i want to use application resource bundle in my module resource bundle.

i dont want to copy those contents from application resource bundle.

so how can i use application resource bundle in my module resource bundle.

is there is any way that i can import ???

please let me know

thanks
Kishan
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This link explains how to define more than one resource bundle within a single module. There's no reason you can't define a common resource bundle in each of your modules along with one unique to that module.

There's one problem, though: You can only define one default resource bundle, and only the default resource bundle can be used for validation and error messages.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic