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
LazyDynaBean- struts 1.3.8 Casting problem with ActionForm Object
Joined: Jun 25, 2012
Jun 25, 2012 22:06:40
i am using
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
Getting Param values from JSP tp servlet
Exception creating bean of class
ClassCastException: org.apache.struts.action.ActionServlet cannot be cast to javax.servlet.Servlet
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015