M
marco
Hi,
I have this problem : when I submit a Form with the usual
<html:form name="myForm" action="/myAction"
type="org.apache.struts.validator.DynaValidatorActionForm">
......
<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.DynaValidatorActionForm">
....
<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
I have this problem : when I submit a Form with the usual
<html:form name="myForm" action="/myAction"
type="org.apache.struts.validator.DynaValidatorActionForm">
......
<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.DynaValidatorActionForm">
....
<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