struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amit Khurana" <>
Subject Fw: document.forms[0].submit() not working
Date Wed, 16 Oct 2002 06:58:58 GMT

----- Original Message ----- 
Sent: Wednesday, October 16, 2002 12:21 PM
Subject: Fwd: document.forms[0].submit() not working wrote: 

  Date: Tue, 15 Oct 2002 07:12:33 -0700 (PDT)
  Subject: document.forms[0].submit() not working


  I have just started using the struts. I am having  a multi form with three pages. First
is having an image link to second page and second is having an image link to 3rd and finally
3rd is having the submit button.To retrieve the first page data i have written the code given
below but I am getting the javascript error. Even though call to other functions like document.forms[0].reset()
is working fine. Can sb tell me what is the cause.

  <html:form action="/addPayee"> 

  <a href='javascript:document.forms[0].submit();'>
     <html:img src="graphics/continue.gif" width="67" height="15"/>


  Can some one suggest what is the better way to implement such multi page form in the struts.
Thanks in advance.

  amit khurana

  Do you Yahoo!?
  Faith Hill - Exclusive Performances, Videos, & more

Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos, & more

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message