You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ashish Kulkarni <ku...@yahoo.com> on 2003/10/29 05:37:27 UTC

multiple resource files in one struts-config file

Hi,
I have a problem with mulitple resource files in one
struts-config file.
My definiation in the xml file is as below
<message-resources
key="org.apache.struts.action.MESSAGE"
parameter="com.mypackage.maps" />
<message-resources
key="org.apache.struts.action.MESSAGE"
parameter="com.mypackage.approval" />

I have some messages in maps.properties file , but in
my jsp i get error message saying
Missing message for key "errors.header"

what wrong am i doing?
Ashish

__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: multiple resource files in one struts-config file

Posted by Ashish Kulkarni <ku...@yahoo.com>.
Hi
what do u mean by keys
should be some thing like this
message-resources key="MESSAGE"
parameter="com.mypackage.maps" />
<message-resources key="MESSAGE1"
parameter="com.mypackage.approval" />

and should both the property files have
error.header=error 
key and value pair
Ashish
--- Navjot Singh <na...@net4india.net> wrote:
> first pls specify diff keys for diff resource files.
> second, pls check if you have specifiied 
> errors.header=
> line in every property file.
> 
> HTH
> Navjot Singh
> 
> >-----Original Message-----
> >From: Ashish Kulkarni
> [mailto:kulkarni_ash1312@yahoo.com]
> >Sent: Wednesday, October 29, 2003 10:07 AM
> >To: struts-user@jakarta.apache.org
> >Subject: multiple resource files in one
> struts-config file
> >
> >
> >Hi,
> >I have a problem with mulitple resource files in
> one
> >struts-config file.
> >My definiation in the xml file is as below
> ><message-resources
> >key="org.apache.struts.action.MESSAGE"
> >parameter="com.mypackage.maps" />
> ><message-resources
> >key="org.apache.struts.action.MESSAGE"
> >parameter="com.mypackage.approval" />
> >
> >I have some messages in maps.properties file , but
> in
> >my jsp i get error message saying
> >Missing message for key "errors.header"
> >
> >what wrong am i doing?
> >Ashish
> >
> >__________________________________
> >Do you Yahoo!?
> >Exclusive Video Premiere - Britney Spears
> >http://launch.yahoo.com/promos/britneyspears/
> >
>
>---------------------------------------------------------------------
> >To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
> >
> >
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: multiple resource files in one struts-config file

Posted by Navjot Singh <na...@net4india.net>.
first pls specify diff keys for diff resource files.
second, pls check if you have specifiied 
errors.header=
line in every property file.

HTH
Navjot Singh

>-----Original Message-----
>From: Ashish Kulkarni [mailto:kulkarni_ash1312@yahoo.com]
>Sent: Wednesday, October 29, 2003 10:07 AM
>To: struts-user@jakarta.apache.org
>Subject: multiple resource files in one struts-config file
>
>
>Hi,
>I have a problem with mulitple resource files in one
>struts-config file.
>My definiation in the xml file is as below
><message-resources
>key="org.apache.struts.action.MESSAGE"
>parameter="com.mypackage.maps" />
><message-resources
>key="org.apache.struts.action.MESSAGE"
>parameter="com.mypackage.approval" />
>
>I have some messages in maps.properties file , but in
>my jsp i get error message saying
>Missing message for key "errors.header"
>
>what wrong am i doing?
>Ashish
>
>__________________________________
>Do you Yahoo!?
>Exclusive Video Premiere - Britney Spears
>http://launch.yahoo.com/promos/britneyspears/
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org