fmt:setBundle - How to set the value basename from a config file
843840Feb 14 2008 — edited Feb 18 2008Hello,
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.