Thank you very much!

and did you know a possibility to use the existing validators manually?

For instance when I manually have to do an email validation, it would be
cool
to be able to use the functionality of the allready existent
emailfieldvalidator.



Paweł Wielgus wrote:
> 
> Hi Ibastil,
> try getText() method inside Your action.
> Your action needs to extend ActionSupport.
> 
> Best greetings,
> Paweł Wielgus.
> 
> 
> 2008/10/20 lbastil <[EMAIL PROTECTED]>:
>>
>> I have to use Custom Validation and set field errors like:
>> addFieldError("<field name>", "<error message");
>>
>> instead of a plain string for the error message I would like the same
>> property file woth message definitions
>> as for my validator classes and actions.
>>
>> Is this possible?
>> What is the most elegant solution?
>>
>> Thank you in advance.
>> --
>> View this message in context:
>> http://www.nabble.com/Struts2%3A-Custom-Validation%2C-message-from-property-file-tp20068036p20068036.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]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Struts2%3A-Custom-Validation%2C-message-from-property-file-tp20068036p20086174.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]

Reply via email to