Return-Path: X-Original-To: apmail-struts-user-archive@www.apache.org Delivered-To: apmail-struts-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 36EDCD481 for ; Wed, 22 May 2013 22:12:19 +0000 (UTC) Received: (qmail 15199 invoked by uid 500); 22 May 2013 22:12:17 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 15154 invoked by uid 500); 22 May 2013 22:12:16 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 15143 invoked by uid 99); 22 May 2013 22:12:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 May 2013 22:12:16 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [200.23.76.24] (HELO smtp2.afirme.com.mx) (200.23.76.24) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 May 2013 22:12:09 +0000 X-AuditID: ac190187-b7f026d000006217-46-519d429e4268 Received: from AFIEXCASHUB1.afirme.net (afiexcashub1.afirme.net [172.30.1.163]) by smtp2.afirme.com.mx (.) with SMTP id F6.14.25111.E924D915; Wed, 22 May 2013 17:11:42 -0500 (CDT) Received: from AFIEXMBX2.afirme.net ([169.254.2.131]) by AFIEXCASHUB1.afirme.net ([::1]) with mapi id 14.02.0318.001; Wed, 22 May 2013 17:11:46 -0500 From: Alfredo Manuel Osorio Martinez To: "user@struts.apache.org" Subject: Custom error message per converter Thread-Topic: Custom error message per converter Thread-Index: Ac5XOUtEWjoV7ISESCWGy8jE8u5yZA== Date: Wed, 22 May 2013 22:11:45 +0000 Message-ID: Accept-Language: en-US, es-MX Content-Language: es-ES X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.20.72.197] Content-Type: multipart/alternative; boundary="_000_D06B70DB6B06C04AA8A1E9EAA72F1B54C92Eafiexmbx2afirmenet_" MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrELMWRmVeSWpSXmKPExsWyRo5xse48p7mBBk3r5SxeN51hdGD0ePJ+ GnsAYxSXTUpqTmZZapG+XQJXRn/vDKaCa2oV8zY+Z29gnKHUxcjJISFgIvFlw3J2CFtM4sK9 9WxdjFwcQgJbGSXanx9hAkkICcxklNi6sgrEZhNwkPj54i9Yg4iAqcTTW0/YQGxhAW2JpmsT WCHiBhJrPv9jhLD1JK48PQcWZxFQldi+up8FxOYVcJf4u+cuWJxRQFbixOo5YDazgLjEvSk9 rBAHCUgs2XOeGcIWlXj5+B9UXFFiz5zP7BD1eRJXb89gh5gpKHFy5hOWCYxCs5CMmoWkbBaS Moi4jsSC3Z/YIGxtiWULXzPD2GcOPGZCFl/AyL6KUbg4t6TASC8xLbMoN1UvOT9XL7diEyMo HiQZ23cw9u+3PMQozcGiJM7r29AVKCSQnliSmp2aWpBaFF9UmpNafIiRiYNTqoExSFqV3+y2 aFlhLBPPpDTfNKmHnoYq+gXX+86tvbPw2a3bqgtPGfPbqaRven2qLZ5rx2yNvX+XqPU4TPHs W3y0TjP82NOnebcrNL+vsTOKeCNjcuHohqn3jkbJ/u1xf6jf399Woe/eESEpbVzeu8tV4bBL WGyAXGoPb8iJP7FO17K6Tkm83afEUpyRaKjFXFScCADupDvgVQIAAA== X-Virus-Checked: Checked by ClamAV on apache.org --_000_D06B70DB6B06C04AA8A1E9EAA72F1B54C92Eafiexmbx2afirmenet_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello, Is it possible to configure a custom error message per converter? For example I have this in my xwork-conversion.properties: java.util.Date=3Dmx.com.afirme.midas2.converter.DateConverter Whenever a Date conversion fails in any action I'd like to show a message l= ike this: Incorrect format, expected mm/dd/yyyy I don't want to define a custom message per property as mentioned in the do= cumentation: http://struts.apache.org/release/2.3.x/docs/type-conversion.html "However, sometimes you may wish to override this message on a per-field ba= sis. You can do this by adding an i18n key associated with just your action= (Action.properties) using the pattern invalid.fieldvalue.xxx, where xxx is= the field name." Alfredo Osorio --_000_D06B70DB6B06C04AA8A1E9EAA72F1B54C92Eafiexmbx2afirmenet_--