not true.  i just created a jsp page with <html:errors/> without declaring the
tag library.  the source code of the generated jsp looks like this:

<html:errors/>

[EMAIL PROTECTED] wrote:

> If she hadn't declare the struts-html.tld, she should have a struts error
> message
> like "html tag is not defined"
>
> -----Message d'origine-----
> De: Jonathan M Crater [mailto:[EMAIL PROTECTED]]
> Date: mercredi 26 septembre 2001 15:58
> À: [EMAIL PROTECTED]
> Objet: Re: Using <html:errors/>
>
> are you declaring the html tag library before you try to use the errors tag?
>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
>
> Anna Englund wrote:
>
> > Hi,
> >
> > I'm new with Struts and have a question on how to
> > display error messages.
> >
> > In my Action I detect an error and take the following
> > actions:
> > - Create an ArrayErrors object, errors
> > - Add a new ArrayError to errors
> > - Save errors in request
> > - Retrieves the messages with <html:errors/> in my jsp
> >
> > ...
> > ActionErrors errors = new ActionErrors();
> > errors.add(ActionErrors.GLOBAL_ERROR,
> >         new ActionError("error.company.updatecollision"));
> > saveErrors(request, errors);
> > ...
> >
> > The problem I'm having is that the error message is
> > never displayed. I've added a java snippet in my jsp
> > that retrieves all attributes from the request and
> > there I can find the bean
> > org.apache.struts.action.ERROR which has a property
> > named org.apache.struts.action.GLOBAL_ERROR.
> >
> > I have no idea what I have done wrong. Any help would
> > be greatly appreciated.
> > //Anna
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Get email alerts & NEW webcam video instant messaging with Yahoo!
> Messenger. http://im.yahoo.com


Reply via email to