You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dennis Muhlestein <de...@zserve.com> on 2002/10/21 19:08:39 UTC
Best Practice for optaining GLOBAL_ERRORS
I want to display errors with <html:errors property="myproperty" />
By the input field for the property. That is fine and works ok.
At the top of my form, I'd like to display any Global Errors.
I've added <html:errors property="ActionErrors.GLOBAL_ERROR"/>
That works too, but it doesn't seem like very good practice to have to
add the <%@page import="org.apache.struts.aciton.ActionErrors"%> at the
top of the page so I can get the gobal_ERROR attribute
Any suggestions? I could leave as is and everything would be fine I
guess.
Thanks
Dennis
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Best Practice for optaining GLOBAL_ERRORS
Posted by Dennis Muhlestein <de...@zserve.com>.
Yes it does, but I only want the global ones at the top of the form.
:-)
On Mon, 2002-10-21 at 11:44, Vincent Stoessel wrote:
> Hi,
> Doesn't just using <html:errors /> automatically
> pull all the ActionErrors out for you?
>
>
> Dennis Muhlestein wrote:
>
> > I want to display errors with
> > By the input field for the property. That is fine and works ok.
> >
> > At the top of my form, I'd like to display any Global Errors.
> > I've added
> >
> > That works too, but it doesn't seem like very good practice to have to
> > add the <%@page import="org.apache.struts.aciton.ActionErrors"%> at the
> > top of the page so I can get the gobal_ERROR attribute
> >
> > Any suggestions? I could leave as is and everything would be fine I
> > guess.
> >
> > Thanks
> > Dennis
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > For additional commands, e-mail:
>
>
>
> --
> Vincent Stoessel
> Linux Systems Developer
> vincent xaymaca.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: Best Practice for optaining GLOBAL_ERRORS
Posted by Vincent Stoessel <vi...@xaymaca.com>.
Hi,
Doesn't just using <html:errors /> automatically
pull all the ActionErrors out for you?
Dennis Muhlestein wrote:
> I want to display errors with
> By the input field for the property. That is fine and works ok.
>
> At the top of my form, I'd like to display any Global Errors.
> I've added
>
> That works too, but it doesn't seem like very good practice to have to
> add the <%@page import="org.apache.struts.aciton.ActionErrors"%> at the
> top of the page so I can get the gobal_ERROR attribute
>
> Any suggestions? I could leave as is and everything would be fine I
> guess.
>
> Thanks
> Dennis
>
>
>
> --
> To unsubscribe, e-mail:
> For additional commands, e-mail:
--
Vincent Stoessel
Linux Systems Developer
vincent xaymaca.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>