I am trying to reuse ActionForms within an application but I am unsure how
to deal with validation. What I have at the moment is an ActionForm1 which
contains a second form ActionForm2. In validation.xml, how do I use the
validation for ActionForm2 within the ActionForm1 validation? Can I use it
with something like this -

 

<form name="form1">

  <!-- field validations -->

 

  <!-- import form 2 validation -->

  <form name="form2"/>

</form>

 

ActionForm2 has its own custom validations which I also need to call when
submitting the form, can I call them by just using
getActionForm2.validate(mapping,request) within ActionForm1 validation
method or how can this be achieved? 

 

Thanks,

Ciaran

 

Reply via email to