This week's giveaways are in the MongoDB and Jobs Discussion forums.
We're giving away four copies of Mongo DB Applied Patterns and 4 resume reviews from Five Year Itch and have the authors/reps on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes Is FormBean Is Necessary? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Is FormBean Is Necessary?" Watch "Is FormBean Is Necessary?" New topic
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is FormBean Is Necessary?
 
Similar Threads
Empty Action Form
action forward
boolean form bean member
Deployment success but Unable to access my WebApp in Weblogic
Struts and Sequence Diagrams