On Tue, Dec 28, 2010 at 12:43 PM, Anjib Mulepati <anji...@hotmail.com>wrote:
> Ok to make my self clear I have three field to check name,email and > message. > I want name and message to be required but email required complex > validation that is not provided with struts. > What kind of "complex" validation? > As 'required' is provided in Struts I can set validation rule for name and > message simply in xml file. > And i want to write validation rule for email in validate() method. > Is that possible? > > Yes. My apologies for misunderstanding. If you override validate() on your Form bean, you can do whatever else you want to do. Paul