| Author |
Is FormBean Is Necessary?
|
john Dalton
Greenhorn
Joined: Jun 18, 2012
Posts: 12
|
|
Hello All,
I am a newbie to struts,I have question in struts.
Is the Form bean class is necessary for each action class.If yes ,Suppose i am not reading any data from form bean but i am usingg action class for just forwarding to other jsp page or
other action class . in this case it is must to write a form bean with just validate method or it is not required???
Thanks in Advance
|
 |
Singh Harmeet
Ranch Hand
Joined: Aug 05, 2011
Posts: 114
|
|
|
i think the form bean is the concept of struts 1 , if you are new in struts then continue with struts 2 , there is no need to learn the concept of strtus 1.
|
With Regards :-
Harmeet Singh
|
 |
Shankar Tanikella
Ranch Hand
Joined: Jan 30, 2011
Posts: 329
|
|
Hi Muralikrishna,
Welcome to JavaRanch!!!
In your case, you do not need the form but the action class method signature should include the action form as parameter.
|
Have Fun with Java
little,little.. little by little makes a lot..
|
 |
Pawan Singh
Greenhorn
Joined: Jun 05, 2012
Posts: 9
|
|
Form bean is neccessary in Struts 1.3, if you don't need to fetch the data, just create a FormBean without any Property.
|
 |
 |
|
|
subject: Is FormBean Is Necessary?
|
|
|