Please, help me with suggestion.
My logic is:
1.PrepareLawAction is invoked.
This action gets Law object from DB (if action received lawId parameter ) or it prepares template Law object (just automatically fills some Law fields which user can't modify).
2.Action sends user to processlaw.jsp
Here user inputs other fields of Law object or modifies them. All fields like <s:textfield/>, <s:select/> and others are inside <s:form/>
Now, problems which I can't solve:
1.PrepareLawAction already made the Law instance. This object can be accessed from processlaw.jsp, but the next action (StoreLawAction) after processlaw.jsp will not "see" my Law object. Is it good practice to store Law object in session (PrepareLawAction will do it) and then retrieve it in StoreLawAction?
2. When user is on the processlaw.jsp he can go to other
jsp page to specify special complicated input. I want to allow user to go to this page, but I don't want to loose user input on processlaw.jsp. How can I do it?
Please, see my drawing: