Hi friends,

I write a modularised Struts Application, which has one default module and an another 
with prefix 'admin'.

I  have defined a default message resource for  the default module as given below,

##### struts-con fig.xml ######

<message-resources parameter="de.lmu.internet.fdb.struts.ApplicationResources" 
null="false" /> 

OK, it works fine. i use the resource with <bean:message key="-key-"./>

Now I am trying to add a new admin module and tried all the possible ways to make the 
following definition working,

#####struts-config-admin.xml####

<message-resources key="advisoryalttext" parameter="resources.advisoryAltText" 
null="true" />

<message-resources key="messageresourcesadmin" 
parameter="resources.messageResourcesAdmin" null="true" />

<message-resources key="constantsadmin" parameter="resources.constants" null="true" />

<!--<message-resources parameter="de.lmu.internet.fdb.struts.ApplicationResources" 
null="false" />-->

when I try this <bean:message bundle="messageresourcesadmin" 
key="admin.verwaltung.index.msg1"/>

 gets an exception .... [ServletException in:/admin/verwaltung/index.jsp] Cannot find 
message resources under key messageresourcesadmin' 

I couldn't figure what I got  here wrong.

any help is very much appreciated.

Thanks in advance,

Alvin


Yahoo! India Mobile: Ringtones, Wallpapers, Picture Messages and more.Download now.

Reply via email to