Re: A fix for the bug in error messages
"Sasvata (Shash) Chatterjee" <[email protected]>
| Newsgroups | gmane.comp.java.keel.user |
|---|---|
| Message-ID | <[email protected]> |
Nathan,
I ran into this last week and fixed it in CVS. It will now handle
multiple pipe-delimited arguments.
Shash
Nathan Kontny wrote:
>In order to remove that extra pipe symbol seen in error messages displayed on
>the jsp pages, the StrutsClientConnector needs a slight change in its
>"handleErrors" method. The part where the ActionError is created with
>parameters:
>
> if (pipePosition > 1) {
> /* There were "parameters" to the error. Break them out */
> ActionError oneError =
> new ActionError(
> oneErrorMessage.substring(0, pipePosition),
> oneErrorMessage.substring(pipePosition));
> ae.add(oneKey, oneError);
> }
>
>In order to remove the pipe symbol start the ActionError's message one more
>over:
>
> new ActionError(
> oneErrorMessage.substring(0, pipePosition),
> oneErrorMessage.substring(pipePosition + 1));
>
>
>
>Quoting "Michael Nash JGlobal.com" <[email protected]>:
>
>
>
>>Nathan:
>>
>>On Tue, 9 Mar 2004 05:55:44 -0800
>>Nathan Kontny <Nathan.Kontny-UgwZ4owrJFB8UrSeD/[email protected]> wrote:
>>
>>
>>
>>>When I use app-registration and don't supply a required field, the error
>>>messages get composed like:
>>>
>>>Field |User Name cannot be null.
>>>
>>>Is the extra "|" pipe symbol a bug?
>>>
>>>
>>I think so - might be something in the i18n section for error messages.
>>Thanks for the catch!
>>
>>Mike
>>
>>
>>
>>>
>>>_______________________________________________
>>>User mailing list
>>>[email protected]
>>>http://lists.keelframework.org/listinfo.cgi/user-keelframework.org
>>>
>>>
>>--
>>Michael Nash
>>
>>JGlobal Ltd
>>Next-Generation Web Application Development and Open Source Support
>>http://www.jglobal.com
>>
>>Bahamas Commerce and Trade
>>Offshore eCommerce Hosting and Business Services
>>http://www.bahamascommerce.com
>>
>>_______________________________________________
>>User mailing list
>>[email protected]
>>http://lists.keelframework.org/listinfo.cgi/user-keelframework.org
>>
>>
>>
>
>
>_______________________________________________
>User mailing list
>[email protected]
>http://lists.keelframework.org/listinfo.cgi/user-keelframework.org
>
>