Re: Validation with DynaValidatorForm not working - help

2006-01-13 Thread Mahadevan Venkataraman
I was able to solve the problem. The problem was I was calling the URL for the form directly from the browser. Fixed the problem.. Thanks Maha --- Mahadevan Venkataraman [EMAIL PROTECTED] wrote: Here is the stack trace that I got from the catalina.log Maha Jan 11, 2006 3:05:52

Re: Validation with DynaValidatorForm not working - help

2006-01-12 Thread Vasumathi
Yes mr.vishal in that case we should validate() method. again i have a doubt, for reducing the class files only we r using DynaValidatorForm, but in this suituation use of DynaValidatorForm fails know... there may be a solution for this. mr.vishal ill search and let u know the solution for that.

Re: Validation with DynaValidatorForm not working - help

2006-01-12 Thread Mahadevan Venkataraman
Thanks for the replies. Here is more info on the problem that I am having. I used the DynaValidatorForm in the form beans in order not to explicitly code the form beans. Also, I tried to do both client-side(javascript) and server-side validations. The client side validation worked. The

Re: Validation with DynaValidatorForm not working - help

2006-01-12 Thread Mahadevan Venkataraman
Here is the stack trace that I got from the catalina.log Maha Jan 11, 2006 3:05:52 PM org.apache.struts.validator.DynaValidatorForm validate SEVERE: org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object, org.apache.commons.validator.ValidatorAction,

Re: Validation with DynaValidatorForm not working - help

2006-01-12 Thread Vasumathi
can u send ur struts_config.xml file with validator plugin and mentioning message_resource class in that file. also pls send ur jsp in which u want to print error messages. regards vasu Quoting Mahadevan Venkataraman [EMAIL PROTECTED]: Thanks for the replies. Here is more info on the

Validation with DynaValidatorForm not working - help

2006-01-11 Thread Mahadevan Venkataraman
Hi, I am having some problems in getting struts to validate my input form. It seems to completely ignore the validation and starts executing the action. Here are the relevant files. Any help regarding this is highly appreciated. TIA Maha struts-config.xml -- form-beans

Re: Validation with DynaValidatorForm not working - help

2006-01-11 Thread Raghu Kanchustambham
Assuming you want to do form-based validation, can you check if your forms.ObjectTypeForm extends from one of the valid validationform objects? If it extends a simple ActionForm, validation will not work. HTH, Raghu On 1/11/06, Mahadevan Venkataraman [EMAIL PROTECTED] wrote: Hi, I am

Re: Validation with DynaValidatorForm not working - help

2006-01-11 Thread Vasumathi
Try like this in struts-config.xml file. i hope it will work. form-bean name=ObjectTypeForm type=org.apache.struts.action.DynaActionForm form-property name=objectType type=java.lang.String / form-property name=description type=java.lang.String / /form-bean Quoting Mahadevan

Re: Validation with DynaValidatorForm not working - help

2006-01-11 Thread Vasumathi
sorry u try this one. not previous one. form-bean name=ObjectTypeForm type=org.apache.struts.validator.DynaValidatorForm form-property name=objectType type=java.lang.String / form-property name=description type=java.lang.String / /form-bean Quoting Mahadevan

Re: Validation with DynaValidatorForm not working - help

2006-01-11 Thread Vishal Gaurav
Hi, Simply having your dyna form bean of the type Dyna Validator form will not work. You have to declare your form bean in the Struts Config as type any local form bean you have. ( form-bean name=ObjectTypeForm type= com.local.ABCForm) Then your ABCForm will extend DynaValidatorForm or

Re: Validation with DynaValidatorForm not working - help

2006-01-11 Thread Vasumathi
no need to create a Form class in local. if we are using DynaActionForm, then no need of create form class in local. i tried in struts_config.xml only, it is working well. Quoting Vishal Gaurav [EMAIL PROTECTED]: Hi, Simply having your dyna form bean of the type Dyna Validator form

Re: Validation with DynaValidatorForm not working - help

2006-01-11 Thread Vishal Gaurav
You are right that there is no need to create a form bean if you are using dyna form. However if you want to link your form with the validation framework then you do need to create a local form bean. This form bean would not have any attributes and their getter and setter methods as they all are

Re: Validation with DynaValidatorForm not working - help

2006-01-11 Thread Vasumathi
No mr.vishal i tried thats y im telling. u try without using validate method in local form. we have to mention the validation for each field in validation.xml file itself. no need of calling validate() in local form. definitely it will work. You are right that there is no need to create a

Re: Validation with DynaValidatorForm not working - help

2006-01-11 Thread Vishal Gaurav
I guess that would work if you have validations corresponding to a form i.eyou are extending DynaValidatorForm. If you need to extend DynaValidatorActionForm, i.e give validations corresponding to a action (as single form can be reused in different actions and not all fields need to be validated