In a Struts2 form I have something like this:
When something is entered in textfield and you hit enter key, the form submits to myForm_view.action. How do I add a parameter to the action in this case? I need something like myForm_view.action?arg=1.Code:<s:form action="myForm_view" name="MyForm" > <s:textfield name="searchPhrase"/> ..... </s:form>
Please help. Thanks in advance.