RE: Struts2: Custom Validation, message from property file
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 additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts2: Custom Validation, message from property file
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 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("", ">> >>> 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] > >
Re: Struts2: Custom Validation, message from property file
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("", "> >> 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]
Re: Struts2: Custom Validation, message from property file
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("", " > 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] > >
Struts2: Custom Validation, message from property file
I have to use Custom Validation and set field errors like: addFieldError("", "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]