I need to get a better idea of the process flow for Struts. All of the examples I see talk about a logon screen application. First a .jsp is presented, then the screen data is moved into a ActionForm, then control is handed to an Action which calls the next screen.
My problem is, I don't want to mix code for loading the second screen in with the validation of the logon for the first screen.
Also, I am being told that the process is really, Action --> ActionForm --> .jsp. And the loading of data for the .jsp should take place in the Action. (Which is the opposite of all the logon examples.)
So then I thought, ok, I will just link the logon form Action to another action that will load the second form. I have since heard thats not a good idea.
So a la "the chicken or the egg", which comes first? The action or the display of the .jsp?
My problem is, I don't want to mix code for loading the second screen in with the validation of the logon for the first screen.
Also, I am being told that the process is really, Action --> ActionForm --> .jsp. And the loading of data for the .jsp should take place in the Action. (Which is the opposite of all the logon examples.)
So then I thought, ok, I will just link the logon form Action to another action that will load the second form. I have since heard thats not a good idea.
So a la "the chicken or the egg", which comes first? The action or the display of the .jsp?