Re: [OT] Exception.getLocalizedMessage()

2007-12-23 Thread Adam Hardy
hi gary, thanks for the thoughts. You're right, AOP would do it, but I also have a dislike of AOP and would want to use it for this unless I was convinced it was worth leveraging getLocalizedMessage(). I'm with you on the idea of putting the localization key into the exception, but I'm not to

Re: [OT] Exception.getLocalizedMessage()

2007-12-22 Thread Gary Affonso
A agree that you're going to have to bind something to the Exception in order to do I18N resolution. And I agree that creating that binding sucks. If you don't want to ditch getLocalizedMessage you could AOP it. Have your getLocalizedMessage() method wrapped with some advice that swaps in th

Re: [struts] [OT] Exception.getLocalizedMessage()

2007-12-22 Thread Dale Newfield
Adam Hardy wrote: And of course, I can't pass in parameters when calling getLocalizedMessage(). ThreadLocal? -Dale "Pass through the common block" Newfield - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[OT] Exception.getLocalizedMessage()

2007-12-22 Thread Adam Hardy
I came across a conundrum while implementing the S2 exception handling that we were discussing in another thread. As the title suggests, I'm interested in Exception.getLocalizedMessage() but have a seemingly intractable problem with it. Exception.getLocalizedMessage() returns by default the m