Hi yes if i do that it works fine, but my problem is the following some error messages come from maps.properties file, which is default and some come from approval.properties file, so is there a way to make a single tag work for both
Ashish --- atta-ur rehman <[EMAIL PROTECTED]> wrote: > hi, > > what do you mean by "when i try to dispay it"? are > you using <html:errors> > tag or some other mechanism? > > in your JSP page have you tried: > > <html:errors bundle="approval" /> > > ATTA > ----- Original Message ----- > From: "Ashish Kulkarni" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, October 31, 2003 10:32 AM > Subject: 2 message resource files andmessages in > Action class problem > > > > Hi, > > I have 2 message resource file defines in my > > struts-config file, it works perfect in jsp where > i > > can use "bundle" keyword on <bean:message ..> tag, > but > > it does not work in my action class where i want > to > > set messages from message resource > > So > > <bean:message key="approval.001" > bundle="approvals"/> > > works fine in jsp while > > > > > > errors.add(ActionErrors.GLOBAL_ERROR, > > new > ActionError("approval.001")); > > saveErrors(request, errors); > > does not work in Action class and i get error bean > not > > found in scope on jsp when i try to display the > > message > > 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]