I've gotten this to work by using '#' as the target of the href: <html:link href="#" onclick="document.forms[0].submit();">Login</html:link>
See also http://www.mail-archive.com/[EMAIL PROTECTED]/msg46693.html
Konstadinis Euaggelos wrote:
If you are using this way to submit the form then ,
you must not have in your form <html:submit> but only <html:button> . so you must submit your form only wiht javasrcript.
Hope this help.
----- Original Message ----- From: "Faisal Shoukat" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, July 29, 2003 2:34 PM
Subject: submit a form with html:link
Hi,
I am trying to submit a form by using a link. I have looked through the emails already on this and am using the following code from a previous mail:
<html:link href="" onclick="javascript:'document.forms[0].submit();return false;'">Login</html:link>
however when I click on the link nothing happens? Does anybody know why?
Thanks in Advance Faisal
--------------------------------------------------------------------- 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]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]