This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
I amd new to struts and just reffering Struts book of Wrox publications. It is Employe Management application and they have explained that application. It has all the functionality Add/ Delete/ Edit etc. Each JSP page has its own Form Bean classes and on top of that there is one Common class called Employee which has get and set methods of the fields of the tabels.
For the Employee Class they have explaned that this class's object will hold the data of individual employee.
But i do not see how flow from one JSP will pass to this Employee class so thaty values entered by user will be set to the setter method using Reflection. Because in struts-config.xml Form Beans are associated with Each different Action classes and JSP.
Its based on the URL that is sent from the browser to the server. So if the browser sends a request to http://<yourserver>:<yourport>/<yourContext>/SomeAction.do, Then the struts-config.xml will be checked for an action named "SomeAction". If that action is found then the name attribute of that action will be used to find the class of the form to be used.