You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by TuomoS <tu...@tranceaddict.net> on 2008/01/28 17:09:34 UTC
Conversion error gets printed twice
Date conversion prints out twice the error message when using s:fielderror.
<s:fielderror>
<s:param value="%{'endDate'}" />
</s:fielderror>
Any ideas why this is happening ?
--
View this message in context: http://www.nabble.com/Conversion-error-gets-printed-twice-tp15138548p15138548.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Conversion error gets printed twice
Posted by Dave Newton <ne...@yahoo.com>.
--- TuomoS <tu...@tranceaddict.net> wrote:
> Date conversion prints out twice the error message when using s:fielderror.
>
> <s:fielderror>
> <s:param value="%{'endDate'}" />
> </s:fielderror>
>
>
> Any ideas why this is happening ?
Often it's because a conversion error will also create a validation error and
the "conversionError" interceptor[1] will put conversion errors into the
field errors.
d.
[1] http://struts.apache.org/2.x/docs/conversion-error-interceptor.html
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org