Hi all
Iam using validation.xml for validation.The problem here is if i have a Action class and its corresponding form (which has an entry in validation.xml)
Eg:
-------------------------------------------------------------------------
/*@struts.action path = "/editCustomer" name = "editForm" scope = "request" validate="true" input="ErrorEdit"
*
* * @struts.action-forward name = "ErrorEdit" path="editShopperTile"
*
*/
public class EditShopperAction extends AbstractAction{
public void execute(StrutsActionContext actionContext) {
---------------------------------------------------------------------------
Form Bean
/**
* @struts.form name="editForm"
*/
public class EditForm extends ValidatorForm {
private
String etelephone;
/**
* @struts.validator type="required" msgkey="CustomerForm.telephone"
**/
public void setEtelephone(String etelephone) {
this.etelephone = etelephone;
}
---------------------------------------------------------------------------
Problem
-------
When my action class gets loaded it checks fro validate =true and validation is performed before entering values.Here for eg telephone ..while the form is loaded telephone =null and hence it showing me the validation failure result.
How to skip validation in this case.
Im using two action class for this.One for displaying the filling form and other to check validation.
Can anyone give me a solution to this
Thanks in advance
Venkatesh Loganathan