struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chamal desilva <chama...@yahoo.com>
Subject Validating a form bean
Date Thu, 02 Nov 2006 10:45:54 GMT
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message