Econify
asked on
How to use two action forms inside same action class?
Hi,
I want to use two Actionforms into a action class? Can I use it?
Currently I am using it but it is giving me error like :-
========================== ========== =======
11:15:10,984 ERROR [[action]] Servlet.service() for servlet action threw exception
java.lang.ClassCastExcepti on: com.econify.struts.form.Vi ewcartForm
at com.econify.struts.action. Updatecart Action.fea tureditemf orm(Update cartAction .java:97)
at com.econify.struts.action. Updatecart Action.exe cute(Updat ecartActio n.java:86)
at org.apache.struts.action.R equestProc essor.proc essActionP erform(Req uestProces sor.java:4 84)
========================== ========== =======
What should I do if I want to use two forms inside same action class?
Please help me.
Thanx in advance.
Prash
I want to use two Actionforms into a action class? Can I use it?
Currently I am using it but it is giving me error like :-
==========================
11:15:10,984 ERROR [[action]] Servlet.service() for servlet action threw exception
java.lang.ClassCastExcepti
at com.econify.struts.action.
at com.econify.struts.action.
at org.apache.struts.action.R
==========================
What should I do if I want to use two forms inside same action class?
Please help me.
Thanx in advance.
Prash
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi Econify
good go ahead. :)
good go ahead. :)
ASKER
thanx for ur help. I found some other way for doing above thing. I think that is easier for me.
The other solution is :- uisng two actions pointing to same action class.
I assume your solution will also work for me.
So anyways I give up all points to you.
Thanx again.