File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
LazyDynaBean- struts 1.3.8 Casting problem with ActionForm Object
Joined: Jun 25, 2012
Jun 25, 2012 22:06:40
i am using Struts 1.3.8
while cadting the
object in Action Class, it is raising a compilation error saying "
Can not cast ActionFor to LazyDynaBean
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
Joined: May 25, 2009
Jun 25, 2012 22:30:29
Please search first before posting.
Thanks & Regards, Sumeet
SCJP 1.4, SCWCD 5,
I agree. Here's the link:
subject: LazyDynaBean- struts 1.3.8 Casting problem with ActionForm Object
ClassCastException: org.apache.struts.action.ActionServlet cannot be cast to javax.servlet.Servlet
Getting Param values from JSP tp servlet
Exception creating bean of class
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014