Hi Dave,
I'm not sure I fully understand your reply;
I found the interceptor validatoin
<interceptor-ref name="validation" />
assuming I remove it, as you suggested, what should come instead and how can
I configure the error messages.
thank you
newton.dave wrote:
>
> Type conversion errors are added separately from validation errors.
>
> Among the options is to remove the conversion error interceptor from your
> interceptor stack and use only the validation errors.
>
> Dave
>
> --- On Thu, 6/26/08, xianwinwin <[EMAIL PROTECTED]> wrote:
>
>> From: xianwinwin <[EMAIL PROTECTED]>
>> Subject: <s:fielderror /> - how to provide an understandable error
>> message to the enduser?
>> To: [email protected]
>> Date: Thursday, June 26, 2008, 6:35 PM
>> Hi all,
>>
>> If the end-user input wrong date-type (eg., date format is
>> incorrect, or for
>> 'number of people' he types 'Q') the
>> 'input' is fired and it shows the error
>> message.
>>
>> I do that with the 'return input' and the jsp page
>> (this is ajax-id) looks
>> like this:
>>
>>
>> <%@ taglib prefix="s"
>> uri="/struts-tags" %>
>>
>> udpate Fail<BR>
>> <s:fielderror />
>>
>>
>> the problem is that the user see something like this:
>> Update fail:
>> Invalid field value for field "Car.returnDate".
>>
>> obviously returnDate is a field name in Car (that's
>> great for the
>> developers); but my question is this: How can I show a nice
>> understandable
>> error message such as: 'error with car return date'
>>
>>
>> thanks for any pointers
>> * once again, this is only when the data-type is incorrect.
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/%3Cs%3Afielderror--%3E----how-to-provide-an-understandable-error-message-to-the-enduser--tp18144819p18144819.html
>> Sent from the Struts - User mailing list archive at
>> Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail:
>> [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/%3Cs%3Afielderror--%3E----how-to-provide-an-understandable-error-message-to-the-enduser--tp18144819p18154826.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]