yes you can do that but do you have a getCustomer() and setCustomer() method
in your formbean?

Gr
Ronald 

> -----Original Message-----
> From: Charlesworth, Chico [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 07, 2002 5:56 PM
> To: 'Struts Users Mailing List'
> Subject: Populating complex java objects in forms
> 
> 
> 
> Hi,
> 
> If I've got a complex java object (i.e Customer) in the Form 
> class, I can
> then read off this object in the jsp page, but when 
> submitting to the Action
> class the Customer object is null.
> 
> The jsp would look like:
> <html:form action="/updateCustomer">
>       Customer Name: <html:text property="customer.name"/>
>       <br>
>       <a href="javascript:document.forms[0].submit();">Update 
> Customer</a>
> </html:form>
> 
> So this would display the current customer name, but if I change the
> customer name and then hit the submit link, I find the 
> customer instance is
> now null in the updateCustomer action class.
> 
> Am I doing something wrong, or is it not possible to populate 
> complex java
> objects in the jsp form using struts?
> 
> Cheers,
> Chico.
> 
> 
> -- 
> The content of this e-mail is confidential, may contain 
> privileged material
> and is intended solely for the recipient(s) named above. If 
> you receive this
> in error, please notify Software AG immediately and delete 
> this e-mail.
> 
> Software AG (UK) Limited
> Registered in England & Wales 1310740
> Registered Office: Hudson House, Hudson Way,
> Pride Park, Derby DE24 8HS
> 
> --
> To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


Furore B.V.
Rijswijkstraat 175-8
Postbus 9204
1006 AE Amsterdam
tel. (020) 346 71 71
fax. (020) 346 71 77

----------------------------------------------------------------------------
---------------
The information transmitted is intended only for the person
or entity to which it is addressed and may contain confidential
and/or privileged material. Any review, retransmission,
dissemination or other use of, or taking of any action in
reliance upon, this information by persons or entities other
than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material
from any computer
----------------------------------------------------------------------------
---------------

Reply via email to