From: "Nic Werner" <[EMAIL PROTECTED]>
I call this with: addDevice.do?method=edit
and: addDevice.do?method=update

The param for the first page seems a bit extraneous, is there a way that DispatchAction can just call a default method if the param isn't specified? I would like to just call: addDevice.do and have it bring up the form. I haven't seen mention of this practice or ability in any docs.

Take a look at DispatchAction.unspecified(...) http://struts.apache.org/api/org/apache/struts/actions/DispatchAction.html

(And just looking ahead: are you using any JavaScript? I remember having trouble with either "method" or "action" as a form element name. If you're trying to set the value of one of those as a form property, it seems that there is confusion between the action and method attributes of the <form> tag vs. actual form elements with those names.)

--
Wendy Smoak




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



Reply via email to