Kris,

Unfortunately we are limited to using 1.0.2. Thanks for the suggestion, though.

-= J

> -----Original Message-----
> From: Kris Schneider [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 19, 2002 10:40 AM
> To: Struts Users Mailing List
> Subject: Re: Selective error message display
> 
> 
> James,
> 
> For 1.1, you might try something like:
> 
> <logic:messagesPresent property="returningMonthError">
>   <tr>
>     <td colspan="2">
>       <html:errors property="returningMonthError"/>
>     </td>
>   </tr>
> </logic:messagesPresent>
> 
> Quoting James Childers <[EMAIL PROTECTED]>:
> 
> > All,
> > 
> > I know this question has been asked before, but I couldn't 
> find the answer in
> > the archive.
> > 
> > I would like to be able to selectively display an error, 
> depending on what
> > exactly it was. Here is the code from my validate method in my
> > VacationFinderForm:
> > 
> > if (retCal.before(depCal))
> >     errors.add("returningMonthError", new
> > ActionError("finder.error.returnbeforeleave"));
> > 
> > And in my JSP:
> > <logic:present name="vacationFinderForm" 
> property="returningMonthError">
> >     <tr>
> >             <td colspan="2">
> >                     <pkghtml:error property="returningMonth" />
> >             </td>
> >     </tr>
> > </logic:present>
> > 
> > Without the <logic:present> tags everything works fine, 
> except the display
> > isn't what I need it to be. I think the problem lies in the 
> arguments being
> > passed to the logic:present tag, but I can't figure out 
> what they should
> > be.
> > 
> > Thanks in advance,
> > 
> > -= James
> > 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to