You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Justin Ashworth <ju...@ashworth.org> on 2003/01/10 15:36:39 UTC

Checking for the existence of errors

Hi all,

Is there an elegant way using Struts / JSTL tags to tell if any errors are
stored in the ActionErrors object before calling <html:errors/> or even
<html:errors name="xxx"/>?  If <html:errors name="xxx"/> is going to display
something, then I want to put a special header on it.  The default
errors.header is insufficient for what I'm doing.

I could write my own tag, but before doing so I just want to make sure I'm
not reinventing the wheel.

Thanks,

Justin


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Checking for the existence of errors

Posted by Justin Ashworth <ju...@ashworth.org>.
Thank you so much Kris and Bill - the answer was right under my nose.

Thanks,

Justin

----- Original Message -----
From: "Kris Schneider" <kr...@dotech.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Friday, January 10, 2003 9:42 AM
Subject: Re: Checking for the existence of errors


>
http://jakarta.apache.org/struts/userGuide/struts-logic.html#messagesPresent
>
> Quoting Justin Ashworth <ju...@ashworth.org>:
>
> > Hi all,
> >
> > Is there an elegant way using Struts / JSTL tags to tell if any errors
are
> > stored in the ActionErrors object before calling <html:errors/> or even
> > <html:errors name="xxx"/>?  If <html:errors name="xxx"/> is going to
> > display
> > something, then I want to put a special header on it.  The default
> > errors.header is insufficient for what I'm doing.
> >
> > I could write my own tag, but before doing so I just want to make sure
I'm
> > not reinventing the wheel.
> >
> > Thanks,
> >
> > Justin
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> >
>
>
> --
> Kris Schneider <ma...@dotech.com>
> D.O.Tech       <http://www.dotech.com/>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Checking for the existence of errors

Posted by Kris Schneider <kr...@dotech.com>.
http://jakarta.apache.org/struts/userGuide/struts-logic.html#messagesPresent

Quoting Justin Ashworth <ju...@ashworth.org>:

> Hi all,
> 
> Is there an elegant way using Struts / JSTL tags to tell if any errors are
> stored in the ActionErrors object before calling <html:errors/> or even
> <html:errors name="xxx"/>?  If <html:errors name="xxx"/> is going to
> display
> something, then I want to put a special header on it.  The default
> errors.header is insufficient for what I'm doing.
> 
> I could write my own tag, but before doing so I just want to make sure I'm
> not reinventing the wheel.
> 
> Thanks,
> 
> Justin
> 
> 
> --
> To unsubscribe, e-mail:  
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 


-- 
Kris Schneider <ma...@dotech.com>
D.O.Tech       <http://www.dotech.com/>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>