i just want to know that why this code is not working .
<s:submit name="addMore" value="+Add More" onclick="this.form.add(<s:textfield />)"></s:submit>
when we are able to change the action of the form like this
<s:submit name="Message" onclick="this.form.action='Helllo'></s:submit>
then we can add a new control in the form .please help to understand the logic