Hi friend,

I have 2 questions concerning the exception handling on:
   - catch annotations
   - validation annotation


I have the following source code:

@Jpf.Action(
       forwards = [EMAIL PROTECTED](name="success", path="/jsp/xxxxxxx.jsp")},
       catches={
           ...
@Jpf.Catch(type=xxxxxxxxxxxxxxx.class, path="xxxxxxxxxx", messageKey="myMessageKey_1")
       },
       validatableProperties={
           @Jpf.ValidatableProperty(
               propertyName="xxx",
               validateRequired=
                   @Jpf.ValidateRequired(messageKey="myMessageKey_2"),
               validateCustomRules={
@Jpf.ValidateCustomRule(rule="xxxxxxxx", messageKey="myMessage_3")}
           )},
[EMAIL PROTECTED](name="error", path="/jsp/error.jsp")
   )
protected Forward creer(InseeForm form) throws xx, yy, zz {
   ...
   }

In case of the catch annotations, how can I use a messageKey as "error 4: the value {0} of field 'A' is not valid if field 'B' is filled with '{1}'."

In case of custom validation, how can I use messageKey as "The field 'xxxxxxxx' has an invalid value: '{0}'.".


Thanks
Christophe


This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.

Reply via email to