from: http://jakarta.apache.org/struts/userGuide/building_controller.html#dyna_act ion_form_classes
"The list of types supported by DynaActionForm beans includes: java.lang.BigDecimal java.lang.BigInteger boolean and java.lang.Boolean byte and java.lang.Byte char and java.lang.Character java.lang.Class double and java.lang.Double float and java.lang.Float int and java.lang.Integer long and java.lang.Long short and java.lang.Short java.lang.String java.sql.Date java.sql.Time java.sql.Timestamp " now, with that being said. I have used my own classes in the DynaForms, but they wil lbe initialized to null UNLESS you do the following: 1) in the Action class, cast the form to a DynaActionForm 2) do an explicit myForm.set("myProperty", new myObject()) type call all in all, i did alot of research on dynaforms and they are pretty useful, but in my opinion they arent versatile enough yet for complex applications/valdation...In the end we choose to retain mostly traditional forms. drew -----Original Message----- From: Andy Kriger [mailto:akriger@;greaterthanone.com] Sent: Thursday, November 14, 2002 10:25 AM To: Struts Users Mailing List Subject: help needed with DynaActionForm I am trying to set properties of an object using DynaActionForm. In my struts-config.xml I have in the <form-bean> <form-property name='creditCard' type='my.package.CreditCard' /> In my JSP I try <html:text property='creditCard.type' /> The CreditCard class has a no-arg ctor and get/set methods for all of its fields. When I load the JSP I get an error Null property value for 'creditCard' I'm guessing that DynaActionForm is not initializing the CreditCard object, but I don't know why (I thought that was the point of DynaActionForm - to be able to use any object and initialize it from the form automatically). Can anyone who has done this successfully point me in the right direction? thx andy -- To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org> -- To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>