On Thu, July 13, 2006 10:58 am, Akshay Ahooja wrote: > Hi, > > Does anyone know how to call a Struts action using Javacript... > > I am using: > <html:form action+"..."> > > ... > > </html:form> > > > I know for regular form tags (<form>) you can use: > document.formname.submit > ()... > > How would you do it for <html:form>? I have to use this because I am using > the Struts Bridge in Jetspeed-2...
You can do it exactly the same way... <html:form> renders a <form> underneath. IIRC, the name of the form is the value of the action attribute, but check the source of a page using <html:form> to be sure. > Akshay Frank -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] Java Web Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you don't have to reinvent it! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]