You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Anderson, James H [IT]" <ja...@citigroup.com> on 2003/12/15 15:52:10 UTC

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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org