Matt Raible, you are a gentleman and a scholar. I had seen a previous post where you said the exact same thing but thought it would be a hassle. Turns out it's not. The 'messageSource' bean already exists in dispatcher-servlet.xml. it's just a matter of sticking it in my Controller definition.
Thanks a mil! Bob mraible wrote: > > You could inject the messageSource bean into your controller. > > Matt > > On Tue, Jun 3, 2008 at 4:35 AM, syg6 <[EMAIL PROTECTED]> wrote: >> >> Spring's SimpleForm controller and AppFuse's BaseFormController both have >> a >> saveMessage() method which grabs a property from your Properties file >> using >> Locale and sticks it in the Sssion under the MESSAGES_KEY attribute. >> >> How in the world can I do this with a normal Controller? I've tried >> delving >> into the code and trying to access the MessageSourceAccessor but none of >> this stuff seems available from a simple Controller. >> >> Anyone ever done this? >> >> Thanks, >> Bob >> -- >> View this message in context: >> http://www.nabble.com/How-to-access-messages-from-a-non-form-controller-tp17620570s2369p17620570.html >> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> 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] > > > -- View this message in context: http://www.nabble.com/How-to-access-messages-from-a-non-form-controller-tp17620570s2369p17624123.html Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
