Jim, I'm not exactly sure what the book means when they say that "whether you use an ActionForm or a DynaActionForm should be transparent," but once you use DynaActionForm, you form is no longer of type RegisterForm (hence the ClassCastException). You must cast it to DynaActionFrom now as in:
DynaActionFrom rf = (DynaActionForm) form; Also, you will need to access the data in rf differently now... rf.get("Name of property"); -Jonathan -----Original Message----- From: Anderson, James H [IT] [mailto:[EMAIL PROTECTED] Sent: Monday, December 15, 2003 9:52 AM To: Struts Users Mailing List Subject: question on DynaActionForm I'm trying to modify the simple Register application from Chapter 1 of "Struts in Action" to use a DynaActionForm in place on the ActionForm shown in the book. I've modified struts-config.xml accordingly. According to the book, whether you use an ActionForm or a DynaActionForm should be transparent. However, when I attempt to run the modified app I get a ClassCastException at the following line in RegisterAction.java: RegisterForm rf = (RegisterForm) form; I'm sure it's something dumb, but I'm not seeing it. Any help appreciated. Thanks, jim --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]