I have a requirement where Container JSP includes multiple JSPs with there own <form> inside the Container's JSP <form> tag. Let me explain how my code structure looks like in code snippet. My scenario is something like that i could save included
JSP form as a draft during submit their "Save as Draft" button and when submit my "Check OUT" button then all included forms data could be available to my action class. Now problem is that when i submit my Container's JSP form then data in first immediate available form is available to my action (in my case it is a1.action) and other forms have null value i.e; a2.action , a3.action etc. have null values. Solution required to resolve this problem now .
Before someone ask me why i need nested forms i thought i should mentioned that earlier. I have multiple collapsible panel in my page and allowing user to save individual panel or submit complete page. To include JSPs in my Container jsp, i have used struts <s:include> tag. Now i think its pretty much clear to answer my query. Thanks.