*
The moose likes Struts and the fly likes Dynamic support for multiple resource bundle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Dynamic support for multiple resource bundle" Watch "Dynamic support for multiple resource bundle" New topic
Author

Dynamic support for multiple resource bundle

amitesh kumar
Ranch Hand

Joined: Aug 01, 2006
Posts: 50
Hi All,

In my application there is a requirement wherein same instance of deployed application can be accessed by multiple users having different roles. For each role there can be sub-roles as well. But for each role the look & feel and the filed labels may differ. To support this we planned to have multiple resource bundles, one per role and each resource bundle will have same keys but there values may differ as per the role. As far server-side action messages & field labels are concerned, I have no problem. But for the validation keys there is an issue. The system picks up the validation keys from the default resource bundle.

I'm using Xdoclet for generating validation.xml. I tried bundle attribute but later observed that this way any field is bound to a single resource bundle. system demands resource bundle selection as per the role.

It is very urgent. We are running out of time. Please suggest some feasible solution to this problem. We can even change our approach to incorporate the desired feature.

Any help would be highly appreciated.

~ Amitesh
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dynamic support for multiple resource bundle