You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by IS Struts <St...@FIRSTTRUST.COM> on 2002/10/30 22:25:11 UTC

Can't make a link on my jsp to submit

Hello:

I am trying to make a link on my jsp to submit the form and I can't!

I tried this:
<html:link href="test.config" onclick="javaScript:submitForm();">myLink</html:link>

and this:
<html:link href="test.config" onclick="javaScript:submit();">myLink</html:link>

and this:
<html:link href="test.config" onclick="javaScript:document.myForm.submit();">myLink</html:link>

What am I missing?
Please help


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Can't make a link on my jsp to submit

Posted by Jean-Baptiste Onofré <jb...@phpfr.org>.
Hello,

i use :
<html:link href="javascript:document.form.submit();">myLink</html:link>

The name of the form in the Action corresponding. For exemple, if you
have :

<html:form action="/area/ProcessForm.do" method="POST">

in link you make :

<html:link
href="javascript:document.ProcessForm.submit();">myLink</html:link>

Try this, it may be fine :)

Best Regards

-- 
Jean-Baptiste Onofré (Nanthrax)
Membre fondateur de phpFR.org
http://www.phpfr.org
jbonofre@phpfr.org
Membre fondateur du LUG Béziers
http://www.lug-beziers.org
jbonofre@lug-beziers.org

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>