Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Make it so: Java DB Connections & Transactions
this week in the
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