Re: how to use 2 resource files in one struts-config.xml? solved it thanx
Hi i have no clue why it was not working before, but now it is working and i ma happy :-) Ashish --- Manish Singla <[EMAIL PROTECTED]> wrote: > hmm... > > You may not have to define message-resources with > key="org.apache.struts.action.MESSAGE". > > Default bundle (with no key attribute in > message-resources) is stored by > struts using key="org.apache.struts.action.MESSAGE". > > I am not sure how come switching location of > message-resources solve > your problem ?? !!! > > > > > > Ashish Kulkarni wrote: > > Hi > > Thanx for all the replies > > I was able to solve the problem by defining > > > parameter="com.myapp.one" /> > > > key="org.apache.struts.action.MESSAGE" > > parameter="com.myapp.two" /> > > instead of > > > > > key="org.apache.struts.action.MESSAGE" > > parameter="com.myapp.two" /> > > > parameter="com.myapp.one" /> > > > > just by defining the two with key approvals before > > one, solved the problem > > my message tag in jsp still is same > > bundle="approvals"/> > > > > for messages from two.property file > > > > So it was just the sequence in which to define it > in > > struts-config.xml file > > Ashish > > > > --- Ben Anderson <[EMAIL PROTECTED]> > > wrote: > > > >>in your struts-config.xml: > >> > >> > >> >>key="MESSAGE_TWO"/> > >>in your jsps: > >> > >> >>bundle="MESSAGE_TWO"/> > >> > >> > >> > >>>From: Ashish Kulkarni > <[EMAIL PROTECTED]> > >>>Reply-To: "Struts Users Mailing List" > >> > >><[EMAIL PROTECTED]> > >> > >>>To: Struts Users Mailing List > >> > >><[EMAIL PROTECTED]> > >> > >>>Subject: Re: how to use 2 resource files in one > >> > >>struts-config.xml? > >> > >>>Date: Wed, 29 Oct 2003 08:56:53 -0800 (PST) > >>> > >>>Hi, > >>>some how >>>bundle="message1"/> > >>>does not work i still get the missing resource > >> > >>error, > >> > >>>how do i define the default bundle?? > >>>i am not using struts module > >>>Ashish > >>>--- Manish Singla <[EMAIL PROTECTED]> wrote: > >>> > >>>>You may try following (from your example) > >>>> >>> > >>bundle="message1"/> > >> > >>>>where bundle attribute maps to key attribute in > >>>> >>>>tag > >>>> > >>>>You may have one default bundle. > >>>>Thus for default bundle ...no need to give key > >>> > >>in > >> > >>>> >>>>...tag.. > >>>>for that bundle corresponding > >>> > >>will > >> > >>>>be without bundle > >>>>attributes follows > >>>> > >>>> > >>>>I assume you are not using struts modules...and > >>> > >>is > >> > >>>>not trying to access > >>>>message resources bundle of different bundle.. > >>>> > >>>> > >>>>Ashish Kulkarni wrote: > >>>> > >>>> > >>>>>Hi > >>>>>I have 2 message resource files, > >>>>>com.myapp.one.properties and > >>>> > >>>>com.myapp.two.properties > >>>> > >>>>>I haev some messages in one and some messages > >>>> > >>in > >> > >>>>two, > >>>> > >>>>>and want to display these in jsp and in action > >>>> > >>>>class > >>>> > >>>>>etc > >>>>>how do i define them in my struts-config.xml > >>>> > >>and > >> > >>>>use > >>>> > >>>>>them with tag. > >>>>>This is what i am trying but is not working > >>>>> >>>>>key="org.apache.struts.action.MESSAGE" > >>>>>parameter="com.myapp.one" /> > >>>>> >>>>>parameter="com.myapp.two" /> &g
Re: how to use 2 resource files in one struts-config.xml? solved it thanx
hmm... You may not have to define message-resources with key="org.apache.struts.action.MESSAGE". Default bundle (with no key attribute in message-resources) is stored by struts using key="org.apache.struts.action.MESSAGE". I am not sure how come switching location of message-resources solve your problem ?? !!! Ashish Kulkarni wrote: Hi Thanx for all the replies I was able to solve the problem by defining parameter="com.myapp.one" /> key="org.apache.struts.action.MESSAGE" parameter="com.myapp.two" /> instead of just by defining the two with key approvals before one, solved the problem my message tag in jsp still is same for messages from two.property file So it was just the sequence in which to define it in struts-config.xml file Ashish --- Ben Anderson <[EMAIL PROTECTED]> wrote: in your struts-config.xml: in your jsps: From: Ashish Kulkarni <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]> Subject: Re: how to use 2 resource files in one struts-config.xml? Date: Wed, 29 Oct 2003 08:56:53 -0800 (PST) Hi, some how does not work i still get the missing resource error, how do i define the default bundle?? i am not using struts module Ashish --- Manish Singla <[EMAIL PROTECTED]> wrote: You may try following (from your example) bundle="message1"/> where bundle attribute maps to key attribute in You may have one default bundle. Thus for default bundle ...no need to give key in will be without bundle attributes follows I assume you are not using struts modules...and is not trying to access message resources bundle of different bundle.. Ashish Kulkarni wrote: Hi I have 2 message resource files, com.myapp.one.properties and com.myapp.two.properties I haev some messages in one and some messages in two, and want to display these in jsp and in action class etc how do i define them in my struts-config.xml and use them with tag. This is what i am trying but is not working and in my jsp i have , where errors.header is defines in one.properties and which is defines in two.properties file i also tried but does not work Ashish __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Fretting that your Hotmail account may expire because you forgot to sign in enough? Get Hotmail Extra Storage today! http://join.msn.com/?PAGE=features/es - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = A$HI$H __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks Manish Singla x73166 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to use 2 resource files in one struts-config.xml? solved it thanx
Hi Thanx for all the replies I was able to solve the problem by defining instead of just by defining the two with key approvals before one, solved the problem my message tag in jsp still is same for messages from two.property file So it was just the sequence in which to define it in struts-config.xml file Ashish --- Ben Anderson <[EMAIL PROTECTED]> wrote: > in your struts-config.xml: > > > key="MESSAGE_TWO"/> > in your jsps: > > bundle="MESSAGE_TWO"/> > > > > >From: Ashish Kulkarni <[EMAIL PROTECTED]> > >Reply-To: "Struts Users Mailing List" > <[EMAIL PROTECTED]> > >To: Struts Users Mailing List > <[EMAIL PROTECTED]> > >Subject: Re: how to use 2 resource files in one > struts-config.xml? > >Date: Wed, 29 Oct 2003 08:56:53 -0800 (PST) > > > >Hi, > >some how >bundle="message1"/> > >does not work i still get the missing resource > error, > >how do i define the default bundle?? > >i am not using struts module > >Ashish > >--- Manish Singla <[EMAIL PROTECTED]> wrote: > > > You may try following (from your example) > > > bundle="message1"/> > > > where bundle attribute maps to key attribute in > > > > > tag > > > > > > You may have one default bundle. > > > Thus for default bundle ...no need to give key > in > > > > > ...tag.. > > > for that bundle corresponding > will > > > be without bundle > > > attributes follows > > > > > > > > > I assume you are not using struts modules...and > is > > > not trying to access > > > message resources bundle of different bundle.. > > > > > > > > > Ashish Kulkarni wrote: > > > > > > > Hi > > > > I have 2 message resource files, > > > > com.myapp.one.properties and > > > com.myapp.two.properties > > > > I haev some messages in one and some messages > in > > > two, > > > > and want to display these in jsp and in action > > > class > > > > etc > > > > how do i define them in my struts-config.xml > and > > > use > > > > them with tag. > > > > This is what i am trying but is not working > > > > > > > key="org.apache.struts.action.MESSAGE" > > > > parameter="com.myapp.one" /> > > > > > > > parameter="com.myapp.two" /> > > > > > > > > and in my jsp i have > > > > , where > > > > errors.header is defines in one.properties > > > > and > > > > > > > > which is defines in two.properties file > > > > i also tried > > > > > > > > but does not work > > > > Ashish > > > > > > > > __ > > > > Do you Yahoo!? > > > > Exclusive Video Premiere - Britney Spears > > > > http://launch.yahoo.com/promos/britneyspears/ > > > > > > > > > > > > >- > > > > To unsubscribe, e-mail: > > > [EMAIL PROTECTED] > > > > For additional commands, e-mail: > > > [EMAIL PROTECTED] > > > > > > > > > > >- > > > To unsubscribe, e-mail: > > > [EMAIL PROTECTED] > > > For additional commands, e-mail: > > > [EMAIL PROTECTED] > > > > > > > > >__ > >Do you Yahoo!? > >Exclusive Video Premiere - Britney Spears > >http://launch.yahoo.com/promos/britneyspears/ > > > >- > >To unsubscribe, e-mail: > [EMAIL PROTECTED] > >For additional commands, e-mail: > [EMAIL PROTECTED] > > > > _ > Fretting that your Hotmail account may expire > because you forgot to sign in > enough? Get Hotmail Extra Storage today! > http://join.msn.com/?PAGE=features/es > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > = A$HI$H __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to use 2 resource files in one struts-config.xml?
in your struts-config.xml: in your jsps: From: Ashish Kulkarni <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]> Subject: Re: how to use 2 resource files in one struts-config.xml? Date: Wed, 29 Oct 2003 08:56:53 -0800 (PST) Hi, some how does not work i still get the missing resource error, how do i define the default bundle?? i am not using struts module Ashish --- Manish Singla <[EMAIL PROTECTED]> wrote: > You may try following (from your example) > > where bundle attribute maps to key attribute in > tag > > You may have one default bundle. > Thus for default bundle ...no need to give key in > ...tag.. > for that bundle corresponding will > be without bundle > attributes follows > > > I assume you are not using struts modules...and is > not trying to access > message resources bundle of different bundle.. > > > Ashish Kulkarni wrote: > > > Hi > > I have 2 message resource files, > > com.myapp.one.properties and > com.myapp.two.properties > > I haev some messages in one and some messages in > two, > > and want to display these in jsp and in action > class > > etc > > how do i define them in my struts-config.xml and > use > > them with tag. > > This is what i am trying but is not working > > > key="org.apache.struts.action.MESSAGE" > > parameter="com.myapp.one" /> > > > parameter="com.myapp.two" /> > > > > and in my jsp i have > > , where > > errors.header is defines in one.properties > > and > > > > which is defines in two.properties file > > i also tried > > > > but does not work > > Ashish > > > > __ > > Do you Yahoo!? > > Exclusive Video Premiere - Britney Spears > > http://launch.yahoo.com/promos/britneyspears/ > > > > > - > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Fretting that your Hotmail account may expire because you forgot to sign in enough? Get Hotmail Extra Storage today! http://join.msn.com/?PAGE=features/es - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to use 2 resource files in one struts-config.xml?
Hi, some how does not work i still get the missing resource error, how do i define the default bundle?? i am not using struts module Ashish --- Manish Singla <[EMAIL PROTECTED]> wrote: > You may try following (from your example) > > where bundle attribute maps to key attribute in > tag > > You may have one default bundle. > Thus for default bundle ...no need to give key in > ...tag.. > for that bundle corresponding will > be without bundle > attributes follows > > > I assume you are not using struts modules...and is > not trying to access > message resources bundle of different bundle.. > > > Ashish Kulkarni wrote: > > > Hi > > I have 2 message resource files, > > com.myapp.one.properties and > com.myapp.two.properties > > I haev some messages in one and some messages in > two, > > and want to display these in jsp and in action > class > > etc > > how do i define them in my struts-config.xml and > use > > them with tag. > > This is what i am trying but is not working > > > key="org.apache.struts.action.MESSAGE" > > parameter="com.myapp.one" /> > > > parameter="com.myapp.two" /> > > > > and in my jsp i have > > , where > > errors.header is defines in one.properties > > and > > > > which is defines in two.properties file > > i also tried > > > > but does not work > > Ashish > > > > __ > > Do you Yahoo!? > > Exclusive Video Premiere - Britney Spears > > http://launch.yahoo.com/promos/britneyspears/ > > > > > - > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to use 2 resource files in one struts-config.xml?
jstl solution: in your jsp: - -- you probably also want to declare a default resource in your deployment descriptor(web.xml) as such: javax.servlet.jsp.jstl.fmt.localizationContext com.myapp.one now you can access the default in the jsp without specifying a bundle: -Ben From: Ashish Kulkarni <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: how to use 2 resource files in one struts-config.xml? Date: Wed, 29 Oct 2003 08:00:46 -0800 (PST) Hi I have 2 message resource files, com.myapp.one.properties and com.myapp.two.properties I haev some messages in one and some messages in two, and want to display these in jsp and in action class etc how do i define them in my struts-config.xml and use them with tag. This is what i am trying but is not working and in my jsp i have , where errors.header is defines in one.properties and which is defines in two.properties file i also tried but does not work Ashish __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Fretting that your Hotmail account may expire because you forgot to sign in enough? Get Hotmail Extra Storage today! http://join.msn.com/?PAGE=features/es - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to use 2 resource files in one struts-config.xml?
You may try following (from your example) where bundle attribute maps to key attribute in will be without bundle attributes follows I assume you are not using struts modules...and is not trying to access message resources bundle of different bundle.. Ashish Kulkarni wrote: > Hi > I have 2 message resource files, > com.myapp.one.properties and com.myapp.two.properties > I haev some messages in one and some messages in two, > and want to display these in jsp and in action class > etc > how do i define them in my struts-config.xml and use > them with tag. > This is what i am trying but is not working > key="org.apache.struts.action.MESSAGE" > parameter="com.myapp.one" /> > parameter="com.myapp.two" /> > > and in my jsp i have > , where > errors.header is defines in one.properties > and > > which is defines in two.properties file > i also tried > > but does not work > Ashish > > __ > Do you Yahoo!? > Exclusive Video Premiere - Britney Spears > http://launch.yahoo.com/promos/britneyspears/ > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to use 2 resource files in one struts-config.xml?
Hi I have 2 message resource files, com.myapp.one.properties and com.myapp.two.properties I haev some messages in one and some messages in two, and want to display these in jsp and in action class etc how do i define them in my struts-config.xml and use them with tag. This is what i am trying but is not working and in my jsp i have , where errors.header is defines in one.properties and which is defines in two.properties file i also tried but does not work Ashish __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]