Re: Accessing ActionMessages from a Tag Library

2007-12-28 Thread Chris Pratt
On Dec 28, 2007 4:48 PM, Chris Pratt <[EMAIL PROTECTED]> wrote: > On Dec 28, 2007 4:15 PM, Adam Hardy <[EMAIL PROTECTED]> wrote: > > Well, I guess I should have read your whole message. :S > > > > Can you get hold of the Action in your tag? If so, then you can do this: > > > > ValidationAware valid

Re: Accessing ActionMessages from a Tag Library

2007-12-28 Thread Adam Hardy
Pratt on 29/12/07 00:48, wrote: On Dec 28, 2007 4:15 PM, Adam Hardy <[EMAIL PROTECTED]> wrote: Well, I guess I should have read your whole message. :S Can you get hold of the Action in your tag? If so, then you can do this: ValidationAware validationAwareAction = (ValidationAware) action; val

Re: Accessing ActionMessages from a Tag Library

2007-12-28 Thread Chris Pratt
On Dec 28, 2007 4:15 PM, Adam Hardy <[EMAIL PROTECTED]> wrote: > Well, I guess I should have read your whole message. :S > > Can you get hold of the Action in your tag? If so, then you can do this: > > ValidationAware validationAwareAction = (ValidationAware) action; > validationAwareAction.getActi

Re: Accessing ActionMessages from a Tag Library

2007-12-28 Thread Adam Hardy
Well, I guess I should have read your whole message. :S Can you get hold of the Action in your tag? If so, then you can do this: ValidationAware validationAwareAction = (ValidationAware) action; validationAwareAction.getActionErrors() validationAwareAction.getActionMessages() validationAwareActi

Re: Accessing ActionMessages from a Tag Library

2007-12-28 Thread Chris Pratt
On Dec 28, 2007 3:42 PM, Adam Hardy <[EMAIL PROTECTED]> wrote: > Here's one way, if you really don't want to use > > import javax.servlet.jsp.jstl.fmt.LocaleSupport; > > LocaleSupport.getLocalizedMessage(pageContext, key); > Please correct me if I'm wrong, but those get Localized messages from Re

Re: Accessing ActionMessages from a Tag Library

2007-12-28 Thread Adam Hardy
Here's one way, if you really don't want to use import javax.servlet.jsp.jstl.fmt.LocaleSupport; LocaleSupport.getLocalizedMessage(pageContext, key); Chris Pratt on 28/12/07 19:19, wrote: OK, I'm losing my mind trying to figure this out. I tried asking on the Users list, but no one there s

Accessing ActionMessages from a Tag Library

2007-12-28 Thread Chris Pratt
OK, I'm losing my mind trying to figure this out. I tried asking on the Users list, but no one there seemed to know the answer, so I figured I'd just ask the people who already know. I'm trying to write a tag library that mimics the old Struts 1 html tag library, I'm planning on open-sourcing it