What is the attribute method in the action tag in the struts.xml? I have seen a lot of usage cases of this attribute but I don't understand how it changes the behaviour?
For example I see nothing happens when I change the following method attribute or I remove it. I tried execute and input and {1}
. Why sometimes I see {1}
for this attribute of struts.xml files.
<action name="ShowAddItemPage" method="input" class="action.clerk.ShowAddItemPage">
<result name="success" type="tiles">addItem</result>
<result name="generalError" type="tiles">clerkGeneralError</result>
<result name="input" type="tiles">addItem</result>
</action>