struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorge Martín Cuervo <jorge.mar...@defactops.com>
Subject Re: Validating a form bean
Date Thu, 02 Nov 2006 10:50:14 GMT
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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 

-- 
;-)
____________________________________
Jorge Martin Cuervo
Analista Programador

Outsourcing Emarketplace
deFacto Powered by Standards

email <jorge.martin@defactops.com>
voz +34 985 129 820
voz +34 660 026 384
____________________________________

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message