The scope is request, which should be ok, and other form fields that are Strings or String Arrays are populated ok, but not complex objects like Customer.
Any other suggestions? -----Original Message----- From: Oliver Reflé [mailto:[EMAIL PROTECTED]] Sent: 07 March 2002 17:10 To: Struts Users Mailing List Subject: AW: Populating complex java objects in forms maybe check the scope of your form beans, maybe the one in the form is held in the session, and the one your action is expection should be in the request. If that happens struts generates a new form bean which is empty. -----Ursprüngliche Nachricht----- Von: Charlesworth, Chico [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 7. März 2002 18:08 An: 'Struts Users Mailing List' Betreff: RE: Populating complex java objects in forms ive got my getter and setter methods in my formbean ... any other ideas? chico -----Original Message----- From: Ronald Haring [mailto:[EMAIL PROTECTED]] Sent: 07 March 2002 17:04 To: 'Struts Users Mailing List' Subject: RE: Populating complex java objects in forms 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 ---------------------------------------------------------------------------- --------------- -- 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]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- 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]>