sami25
Apr 25th, 2007, 09:06 AM
Hi,
I have some resource bundles which have a the url's and menu names, Iam using a custom tag to build a menu,
I would want to access these variables in the mappings property of the SimpleUrlHandlerMapping,
for example:
<bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlH andlerMapping">
<property name="mappings">
<!-- I would like to access the property defined in the resource bundle that is loaded using the org.springframework.context.support.ReloadableReso urceBundleMessageSource -->
<props> <prop key="${menu1.href}">XXXController</prop>
</property>
</bean>
I know that we can load the properties file in the org.springframework.beans.factory.config.PropertyP laceholderConfigurer but since i have resource bundles that have the urls in it (though its not the best way to define there).I wanted to check if we can access the properties loaded by the RBundles. But I would want the same property to be used in the jsp as well, thus making url changes easier.
Thanks in Advance
I have some resource bundles which have a the url's and menu names, Iam using a custom tag to build a menu,
I would want to access these variables in the mappings property of the SimpleUrlHandlerMapping,
for example:
<bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlH andlerMapping">
<property name="mappings">
<!-- I would like to access the property defined in the resource bundle that is loaded using the org.springframework.context.support.ReloadableReso urceBundleMessageSource -->
<props> <prop key="${menu1.href}">XXXController</prop>
</property>
</bean>
I know that we can load the properties file in the org.springframework.beans.factory.config.PropertyP laceholderConfigurer but since i have resource bundles that have the urls in it (though its not the best way to define there).I wanted to check if we can access the properties loaded by the RBundles. But I would want the same property to be used in the jsp as well, thus making url changes easier.
Thanks in Advance