B
Bednarski Adam
Hello
I'm beginner in Strus.
I've got question about "form" tag in Struts.
For example i've got page "Action_1.jsp" wich is called with "Action_1.do":
<html:form action="Action_2.do">
..
..
..
<html:submit>Submit</html:submit>
</html:form>
this page gets data from "Action_1_Form" but also from "Action_2_Form" !
So my question is: why Struts is geting data from "Action_2_Form" ?
In my opinion Struts should get data from "Action_2_Form" after clicking
"Submit" button.
Here is my "struts-config.xml":
<action
path="/Action_1"
type="net.Action_1_form"
scope="request"
<forward name="succes" path="/Action_1.jsp">
</action>
<action
path="/Action_2"
type="net.Action_2_form"
scope="request"
<forward name="succes" path="/Action_2.jsp">
</action>
I'm beginner in Strus.
I've got question about "form" tag in Struts.
For example i've got page "Action_1.jsp" wich is called with "Action_1.do":
<html:form action="Action_2.do">
..
..
..
<html:submit>Submit</html:submit>
</html:form>
this page gets data from "Action_1_Form" but also from "Action_2_Form" !
So my question is: why Struts is geting data from "Action_2_Form" ?
In my opinion Struts should get data from "Action_2_Form" after clicking
"Submit" button.
Here is my "struts-config.xml":
<action
path="/Action_1"
type="net.Action_1_form"
scope="request"
<forward name="succes" path="/Action_1.jsp">
</action>
<action
path="/Action_2"
type="net.Action_2_form"
scope="request"
<forward name="succes" path="/Action_2.jsp">
</action>