Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

LazyDynaBean- struts 1.3.8 Casting problem with ActionForm Object

 
Sreehari Pillai
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 296
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please search first before posting.

Old Post
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic