El jue, 02 de 11 de 2006 a las 11:45, chamal desilva escribió:

in the method validate in CustomerForm class you must call the validate
method of AccountClass.

> Hi,
> 
> I have a form bean  as this one
> 
> public class CustomerForm extends ActionForm
> {
>     private AccountForm accForm = null;
>     // other attributes and methods
>  
> }
> 
> 
> My JSP looks like this. It has a form which contains
> details of CustomerForm as well as AccountForm inside
> CustomerForm.
> 
> <html:form action=/add_cust> <!-- CustomerForm is the
> form bean of this action mapping -->
>    Customer Name <html:text property="name">
>    Customer Age  <html:text property="age">
> 
>    account num   <html:text property="accForm.number">
>    account num   <html:text
> property="accForm.balance">
> </html:form>
> 
> But when I submit the page only the contents of
> CustomerForm is validated. AccountForm's validate
> method does not get called.
> 
> Best Regards,
> Chamal.
> 
> 
>  
> ____________________________________________________________________________________
> Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates 
> (http://voice.yahoo.com)
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
;-)
____________________________________
Jorge Martin Cuervo
Analista Programador

Outsourcing Emarketplace
deFacto Powered by Standards

email <[EMAIL PROTECTED]>
voz +34 985 129 820
voz +34 660 026 384
____________________________________

Reply via email to