Maybe something like:

<c:if test='${not empty org.apache.struts.action.ERROR}'>

> -----Original Message-----
> From: fea jabi [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, February 08, 2006 3:24 PM
> To: user@struts.apache.org
> Subject: RE: show single html:error message for multiple 
> fields validation
> 
> 
> yes, I've seen this. but not really sure how to check is 
> there are any 
> errors and then display the message.
> 
> <html:errors /> --------------- displays all the errors.
> 
> How to display a single message when errors are there?
> 
> How to check if there are any html:errors? I don't see any 
> "size" kind of 
> thing in it.
> 
> Thanks.
> 
> >From: <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <user@struts.apache.org>
> >To: <user@struts.apache.org>
> >Subject: RE: show single html:error message for multiple fields 
> >validation
> >Date: Wed, 8 Feb 2006 10:58:03 -0600
> >
> >http://struts.apache.org/struts-taglib/tagreference-struts-ht
> ml.html#ht
> >m
> >l:messages
> >
> > > -----Original Message-----
> > > From: fea jabi [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, February 08, 2006 10:14 AM
> > > To: user@struts.apache.org
> > > Subject: RE: show single html:error message for multiple fields 
> > > validation
> > >
> > >
> > > can someone help me with this please?  Thanks.
> > >
> > >
> > > >From: "fea jabi" <[EMAIL PROTECTED]>
> > > >Reply-To: "Struts Users Mailing List" <user@struts.apache.org>
> > > >To: user@struts.apache.org
> > > >Subject: show single html:error message for multiple fields
> > > validation
> > > >Date: Tue, 07 Feb 2006 11:07:03 -0500
> > > >
> > > >I have a table. Have editors in it. and when the user
> > > doesn't enter I
> > > >am
> > > >displaying the editors with different border color. hence
> > > would like to
> > > >display only one message of below above the table.
> > > >
> > > >In message resources I have defined a key lbl.errormsg=Enter all 
> > > >required fields.
> > > >
> > > >validation.xml
> > > >            <field property="typeSelected" depends="required">
> > > >                <msg name="required" key="lbl.errormsg"/>
> > > >            </field>
> > > >            <field property="rate" depends="double,required">
> > > >                <msg name="required" key="lbl.errormsg"/>
> > > >                <msg name="double" key="lbl.errormsg"/>
> > > >            </field>
> > > >
> > > >
> > > >In jsp, I gave
> > > ><html:errors/>
> > > >
> > > >Which is displaying all the errors. But would like to
> > > display only one
> > > >defined earlier.
> > > >How to display only one message?
> > > >
> > > >Thanks.
> > > >
> > > >_________________________________________________________________
> > > >Is your PC infected? Get a FREE online computer virus scan
> > > from McAfee(r)
> > > >Security. 
> > > >http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
> > > >
> > > >
> > > 
> >-------------------------------------------------------------------
> > > >--
> > > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > >For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > >
> > > _________________________________________________________________
> > > Express yourself instantly with MSN Messenger! Download today
> > > - it's FREE! 
> > > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
> > >
> > >
> > > 
> --------------------------------------------------------------------
> > > -
> > > 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]
> >
> 
> _________________________________________________________________
> Don't just search. Find. Check out the new MSN Search! 
> http://search.msn.click-url.com/go/onm00200636ave/direct/01/
> 
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to