posted 13 years ago
Thanks for replying Nathan. But, I want to know if this is possible or not since thats the only option they want.
I am trying to do something like below:Want to create two hash maps in app context. From these hashmaps, I am planning to retrieve values in my actions.ie. from context, get the hashmaps and then based on request parameter, decide which one to use.
<bean id="exporter" class="org.springframework.web.context.support.Ser vletContextAttributeExporter">
<property name="attributes">
<map>
<entry key="appContenMapEn" value-ref="enMAP" />
<entry key="appContenMapSp" value-ref="spMAP" />
</map></property></bean>
<bean id="enMAP" class="java.util.HashMap">
<constructor-arg>
<map>
<entry key="defaultCss" value="/dmm/styles/default.css" />
</map>
</constructor-arg>
</bean>
<bean id="spMAP" class="java.util.HashMap">
<constructor-arg>
<map>
<entry key="defaultCss" value="/dmm/styles/default.css" />
</map>
</constructor-arg>
</bean>
Is it possible to do something like this? Thanks for help,Namita