That is what it is intended to be used for... Not sure why it doesn't work. If you use multi-bundles then I assume you named them in the struts-config (using the "key" attribute)
This bundle attribute is supposed to pick up the message resource (key,value) from this "bundle" attribute. I know because I read it on the train in this morning (just by chance) so key in struts-config message-resource should match the exception config's bundle. Both in struts-config. sandeep --- "Butash, Bob" <[EMAIL PROTECTED]> wrote: > I have figured out how to use different message > resources, based on a > response to a previous post. > > I still have not found further information regarding > the bundle attribute on > ExceptionConfig. > > ExceptionConfig has a bundle attribute: > I have seen very little documentation as to what > this is actually used for. > If I provide an actual ResourceBundle name here it > is not used when > formatting the message to the view. Does anyone > know what this is intended > to be used for? > > Any help would be appreciated. > > -----Original Message----- > From: Butash, Bob [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2003 12:41 PM > To: 'Struts Users Mailing List' > Subject: ExceptionConfig bundle Attribute & Using > Multiple Message > Resourc es. > > > We are trying to create an ExceptionHandler that has > some built in logging > capabilities and one of the items that we would like > to log is the Formatted > message that is associated with the Error key. So > we are trying to > determine a way to get visibility to the message > resources. The > ExceptionHandler's execute method does not get the > Action class therefore > there is no visibility to the ServletContext. Does > anyone have any ideas in > this area? > > Also while we were investigating this we stumbled on > a couple of questions > that we have not been able to resolve. > > ExceptionConfig has a bundle attribute: > I have seen very little documentation as to what > this is actually used for. > If I provide an actual ResourceBundle name here it > is not used when > formatting the message to the view. Does anyone > know what this is intended > to be used for? > > Taking advantage of multiple message resources: > It is clearly documented how you establish multiple > message-resources, but I > have not been able to locate how you designate that > you want to use a > secondary message resource. For example I want to > create an ActionError > with a message key that is obtained from a different > message resource file, > how is this done? > > Any help would be great, thanks in advance. > > --------------------------------------------------------------------- > 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!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]