I made the equivalent of the errors tag, but it
iterates through the error messages.

      <validator:errorsExist>
         <bean:message key="errors.header"/>
         <ul>
         <validator:errors id="error">
            <li><bean:write name="error"/></li>
         </validator:errors>
         </ul><hr>
      </validator:errorsExist>

or 

      <validator:errorsExist>
         <ul>
         <validator:errors id="error"                 
          header="errors.header"
                           footer="errors.footer">
            <li><bean:write name="error"/></li>
         </validator:errors>
         </ul><hr>
      </validator:errorsExist>

The header and footer are optional.

http://home.earthlink.net/~dwinterfeldt

David

--- Maya Muchnik <[EMAIL PROTECTED]> wrote:
> In struts-example resource file errors.header has
> "<ul>" tag, and
> errors.footer has "</ul>" tag. This reason why each
> error message must to
> have these pair tags.
> Hope this help.
> Maya
> 
> Phillip Rhodes wrote:
> 
> > I am using the html:errors tag to display my
> messages, but I find that I
> > have to wrap each of my message key values with a
> <li></li> for them to
> > display properly.
> >
> > Is there a way that as I iterator through my
> errors, that I could output
> > the error message with the <li> tag?
> >
> > Thanks!
> 


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/?.refer=text

Reply via email to