ActionForm is a link between JSP and servlet (Action), in order to figure out the use of Actionform, I did some tests.
Actionform - Examples.SIMPLE.SIMPLEACTIONFORM I have added code of print information in the load, build, and each getter / setter of SimpleForm. Action - Examples.SuccessAction only implements the jump control function action - Examples.SIMPLE.PROCESSIMPLEACTION Test SIMPLE.JSP page Submit, Control Page Jump JSP - INDEX.JSP Welcome page, only one simple connection pointing / preparesimplejsp - - Simple.jsp has fill in the form, Form's submission pointing / processsmejsp - SimpleResult.jsp Display Submit
Struts-config.xml TYPE = "examples.simple.processSimpleAction" validate = "true"> Program running phase 1, when you click the index.jsp Om, the program is displayed: SIMPLEACTIONFORM is constructed: SimpleActionform () is: reset () is: getName () is: getsecret () is: GetColor ): Getcing () is: getrating () is: getrating () is: getracy "is: getMessage () can be seen Struts Judging Simple.jsp, clear this page Actionform bean, then, in the process of generating the Simple.JSP page, based on the needs of the page