Problem: Unable to use more than 2 <bean:message> tags in
jsp's.
I am using
struts 1.1 version. I deployed a ear file( in weblogic8.1) which contains a war file in it. And this war contains multiple strus-config.xmls.
They are well defined in web.xml
<
servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/login_struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>config/abc</param-name>
<param-value>/WEB-INF/abc_struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>config/xyz</param-name>
<param-value>/WEB-INF/xyz_struts-config.xml</param-value>
</init-param>
...
</servlet>
Each struts-config.xml contain its own respected applicationResource.properties like login_struts-config.xml contain loginApplicationResources.properties.....
Using <bean:message> tag I want to achieve i18N-internalization.
Strangely
It is working fine for my login module(login_struts-config.xml,loginApplicationResource.properties). It successfully accepting more than 2 <bean:message> tags in my login.jsp, but when i am logged in and accessing other jsp's of other modules, only first <bean:messge key="abc" > is taking and for another <bean:message key="xyz" > tag it giving and exception in console saying the key 'xyz' is not found in application resources.
Every module has its own application resources and placed at WEB-INF/classes folder.
But when i used the key names from loginApplicationResources.properties in jsp's of other module's, it accepting more than 2 <bean:messages >, but it is not taking from other resources properties of respected modules.
I think each time its loading loginApplicatioResource.properties only.
I tried with struts 1.2.0, 1.3.10 jars also, and problem is not solved.
Please any body help in this regard.
Thnaks in Advance.
Regards,
Kiran Kumar.