I remember trying the messagesPresent tags in my jsps but found the
extra code to be not worth the extra effort. It's just a whole lot of
extra code for a quick fix by naming the error property by name. In
the example:
<html:errors property="login"/>
errors.add("login", new ActionMessage("errors.login.invalid"));
I'm using struts 1.2
I think you may be right on the point about using the constant
GLOBAL_ERRORS and GLOBAL_MESSAGES though. I think Ted was discussing
it (or I read it in his book). I forget the outcome of the discussion
however.. as to whether <html:errors> will grab the GLOBAL_MESSAGES
constant.
Andrew
On 5/26/05, Dave Newton <[EMAIL PROTECTED]> wrote:
> Andrew Thorell wrote:
>
> >GLOBAL_ERRORS is deprecated (sp?) Looks like they changed it to just
> >use the Super class constant.
> >
> >
> Yes, but doesn't the errors tag just look for errors, not messages?
>
> I don't recall which release you were using; sorry if I'm just spouting.
> What happens if you check for messagesPresent?
>
> Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]