Re: Struts2: Custom Validation, message from property file

2008-10-21 Thread lbastil
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,

Re: Struts2: Custom Validation, message from property file

2008-10-21 Thread Paweł Wielgus
Hi Ibastil, i haven't tried that. But maybe searching in annotation validation will bring some solution for You. Best greetings, Paweł Wielgus. 2008/10/21 lbastil [EMAIL PROTECTED]: Thank you very much! and did you know a possibility to use the existing validators manually? For instance

RE: Struts2: Custom Validation, message from property file

2008-10-21 Thread sean . chen
Hi all: We are planning to develop a new project on Websphere 5.x (Servlet 2.3/JSP 1.2/ JDK 1.4) and wonder if struts2 could work with these components? Thanks in advance sean - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Struts2: Custom Validation, message from property file

2008-10-20 Thread lbastil
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

Re: Struts2: Custom Validation, message from property file

2008-10-20 Thread Paweł Wielgus
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