You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by EROL TEZCAN <st...@yahoo.com> on 2005/07/05 12:27:40 UTC
stopOnFirstError
Hi,
I want to alert to user, when the first error occured on the ActionForm .
To do this I am using stopOnFirstError ppoperty in struts-config.xml like this
<plug-in className="org.apache.struts.validator.ValidatorPlugIn" >
<set-property property="pathnames" value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml" />
<set-property property="stopOnFirstError" value="true"/>
</plug-in>
But all erros are displayed on the JSP page.
My ActionForm ' s type is ValidatorForm and I am using sturts 1.1
How can I define this ?
Erol
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Re: stopOnFirstError
Posted by Laurie Harper <la...@holoweb.net>.
I'm not sure why stopOnError isn't working for you, but why would you *not*
want to show as much validation information as possible? I hate forms that
tell me I've filled in one field incorrectly, only to complain about
another when I fix the reported error...
L.
EROL TEZCAN wrote:
> Any suggestion ?
>
> EROL TEZCAN <st...@yahoo.com> wrote:Hi,
>
> I want to alert to user, when the first error occured on the ActionForm .
>
> To do this I am using stopOnFirstError ppoperty in struts-config.xml like this
>
>
>
>
>
>
>
>
> But all erros are displayed on the JSP page.
>
> My ActionForm ' s type is ValidatorForm and I am using sturts 1.1
>
> How can I define this ?
>
>
> Erol
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
--
Laurie, Open Source advocate, Java geek and novice blogger:
http://www.holoweb.net/~laurie/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: stopOnFirstError
Posted by EROL TEZCAN <st...@yahoo.com>.
Any suggestion ?
EROL TEZCAN <st...@yahoo.com> wrote:Hi,
I want to alert to user, when the first error occured on the ActionForm .
To do this I am using stopOnFirstError ppoperty in struts-config.xml like this
But all erros are displayed on the JSP page.
My ActionForm ' s type is ValidatorForm and I am using sturts 1.1
How can I define this ?
Erol
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com