I've been fiddling around with trying to get a submit button to invoke a specific method on my action, using the 'method' attribute:

  <s:form theme="css_xhtml" action="profile!save">
    <s:submit value="test1" method="updateLocation"/>
  </s:form>

This didn't work, invoking the standard execute() method. I tried being more specific:

  <s:submit value="test2" method="profile!updateLocation"/>

but that invokes execute as well. I finally got it working by including the 'action' attribute:

  <s:submit value="test3" action="profile" method="updateLocation"/>

So, some questions:

1) Is the problem with the first form (no 'action' attribute) due to accessing the page at profile.action, and submitting it to profile!save.action? Or some other reason?

2) why is execute() called if I've explicitly requested a different method? If the method I specify can't be resolved, shouldn't some sort or error get raised?

L.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to