请教一个STRUTS问题,大家帮忙看看
我action调js的函数,使得action为updatecorp.do?code=1&company="+window.document.forms[0].corpname.value+"&companyid="+window.document.forms[0].corpid.value+"&description="+window.document.forms[0].corpdescription.value;
报错,请问应该如何写,我哪里写错了,谢谢!
<script language="javascript">
function cpvalue()
{
parent.rightFrame.document.location.href="updatecorp.do?code=1&company="+window.document.forms[0].corpname.value+"&companyid="+window.document.forms[0].corpid.value+"&description="+window.document.forms[0].corpdescription.value;
}
function arvalue()
{
parent.rightFrame.document.location.href="updatecorp.do?code=2&area="+window.document.forms[0].corpname.value+"&areaid="+window.document.forms[0].corpid.value+"&description="+window.document.forms[0].corpdescription.value;
}
</script>
<logic:equal name="setCorpForm" property="opturl" value="1">
<html:form method="post" action="javascript:cpvalue();">
</logic:equal>
<logic:equal name="setCorpForm" property="opturl" value="2">
<html:form method="post" action="javascript:arvalue();">
</logic:equal>