wood burning stoves 2.0*
The moose likes Struts and the fly likes LazyDynaBean- struts 1.3.8 Casting problem with ActionForm Object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "LazyDynaBean- struts 1.3.8 Casting problem with ActionForm Object" Watch "LazyDynaBean- struts 1.3.8 Casting problem with ActionForm Object" New topic
Author

LazyDynaBean- struts 1.3.8 Casting problem with ActionForm Object

Sreehari Pillai
Greenhorn

Joined: Jun 25, 2012
Posts: 2
Hi
i am using Struts 1.3.8
while cadting the ActionForm object to LazyDynaBean object in Action Class, it is raising a compilation error saying " Can not cast ActionFor to LazyDynaBean".

code snippet:
LazyDynaBean ldb=(LazyDynaBean) form; // form is an obj of ActionForm passwed in execute method.

i am not looking for an alternative like LazyValidatorForm or something. I am studying it. So need to correct the error.
Thanks in advance experts
Sumit Patil
Ranch Hand

Joined: May 25, 2009
Posts: 296

Please search first before posting.

Old Post


Thanks & Regards, Sumeet
SCJP 1.4, SCWCD 5, LinkedIn Profile
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: LazyDynaBean- struts 1.3.8 Casting problem with ActionForm Object