By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,426 Members | 1,689 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,426 IT Pros & Developers. It's quick & easy.

Submit a form with Javascript

P: n/a
Hi,

I have this problem : when I submit a Form with the usual
<html:form name="myForm" action="/myAction"
type="org.apache.struts.validator.DynaValidatorAct ionForm">

......
<input type="submit" name="action" value="Soumettre">
.....

</form>

everything goes well.
If I try to submit the form with this code changes to prevent "double
submit"

<script language="javascript">

function onClickEventSubmit(elemID)
{
elem = document.getElementById(elemID);
elem.disabled = true;
laForm = elem.form;
laForm.submit();
}

.....

<html:form name="myForm" action="/myAction"
type="org.apache.struts.validator.DynaValidatorAct ionForm">
....
<input type="button" id="test3" name="action" value="Soumettre"
onclick="onClickEventSubmit('test3')>
.....

</form>
I get the following error:
Request[/myAction] does not contain handler parameter named action

Note: I also tried
<input type="submit" id="test3" name="action" value="Soumettre"
onclick="onClickEventSubmit('test3')>

Any ideas?
Thanks
Marco

Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
In article <11**********************@z14g2000cwz.googlegroups .com>,
ma****************@loto-quebec.com enlightened us with...
Hi,

I get the following error:
Request[/myAction] does not contain handler parameter named action


This is a struts error, not really javascript-related per se.
You're best off asking in the com.lang.java.programmer group or at the sun
board.
http://forum.java.sun.com/index.jspa

--
--
~kaeli~
A man needs a mistress... just to break the monogamy.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.