2008/3/16, Dale Newfield <[EMAIL PROTECTED]>:
>
> I propose that instead of having a
> method attribute on the submit tag that works w/o js in the client, but
> requires some black magic on the server side, we add an "action" attribute
> to the submit tag that uses js on the client to change the form target
> before submitting.



Sincerely I don't like to put js where it is not necessary. If you don't
know it, Struts 1 has "LookupDispatchAction" that makes a reverse-lookup in
a resource bundle to retrieve the key and then maps it to a method. See:
http://struts.apache.org/1.x/apidocs/org/apache/struts/actions/LookupDispatchAction.html

Ciao
Antonio

Reply via email to