Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

fmt:setBundle - How to set the value basename from a config file

843840Feb 14 2008 — edited Feb 18 2008
Hello,

Most of the examples using the fmt:setBundle are in the form of:

<fmt:setBundle basename="com.company.resources.resources-portal" scope="request" />,

where resources-portal.properties is the name of the property file.

How do I set the value of the basename attribute dynamically, such that it is read from a configuration. For example, I would like to use something like the following:

<fmt:setBundle basename="<taxcalc:config key='app.props.resourceProps' />" scope="request" />

Basically, I have a tag library that I use to lookup client-specific configuration values. I want to get the the value of the basename from the configuration, and not hardcode a specific file path.

Whenever I do the above, the basename always comes up null.

Is there anyway I can do this?

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 17 2008
Added on Feb 14 2008
6 comments
318 views