Could you set a hidden parameter before submitting- <html:select property="orgId" onchange='document.forms[0].operation='setDependentList'; document.forms[0].submit()'> <html:options collection="orgList" property="value" labelProperty="longName"/> </html:select> And write code in the function setDependentList() of the LookupDispatchAction Here i am assuming document.forms[0].operation is the name of the property the DispatchAction expects.
-----Original Message----- From: Domingo A. Rodriguez S. [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 19, 2006 8:53 AM To: Struts Users Mailing List Subject: Re: Two drop downs, and I need that the contents of the second dependent on the value selected in the first!!! javascript remoting or ajax should do fine there. google for it. --- yamilka vallejo ramos <[EMAIL PROTECTED]> escribió: > Hii everyone, > I have two drop downs in my jsp page, and I need to the contents of > the > second dependent on the value selected in the first. > To handle this, I need for the first combo box to do a submit when it > changes, so that I have a chance to update the second. But I don't know > in > which part of the Action I most write the code to make update the second > drop down, because I'm working with LooKup Dispach Action , and the Hash > Map > wait a parameter that I don't have because I did't make submit to any > button, and there's where I set who it's that parameter > > example: for me did't work: > > <html:select property="orgId" onchange='document.forms[0].submit()'> > <html:options collection="orgList" property="value" > labelProperty="longName"/> > </html:select> > > because I don't know in which part of the Action I most write the code > to > make update the second drop down, because the ActionClass say that it's > waiting a parameter!! > > please if somebody know how to do that I will presure!! > thanks!! > __________________________________________________ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! Regístrate ya - http://correo.espanol.yahoo.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]