That's what I am trying to do in my application. I know this works. You can have the code to load the form in the same Action as unspecified method. When you use the .do directly in URL it will hit the unspecified method. Then in the unspecified method you can pre-populate the action form and then the JSP can come pre-populated with these fields.
The problem I am facing is my unspecified() is always giving me a null ActionForm object. Any solutions ? Regards, Nitin Dubey --- Dakota Jack <[EMAIL PROTECTED]> wrote: > Not sure what you mean here, but there is an > "unspecified" method for > methods that are unspecified. > > Jack > > > On Sun, 27 Mar 2005 08:57:39 -0800, Nic Werner > <[EMAIL PROTECTED]> wrote: > > That was exactly what I needed, thanks Wendy. > > > > Wendy Smoak wrote: > > > > > 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.) > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > -- > "You can lead a horse to water but you cannot make > it float on its back." > ~Dakota Jack~ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]