Struts 1.2 html:form的action和form的action区别,还有如果2个都有执行哪个
现在有struts1.2的代码 , 有这么一段。
<html:form action="lhzxOrderForecustinfo.do?action=list" method="post">--------------省略----------------------<a href="#" class="LinkBut" onclick="doQuery(document.forms[0],<%=flag%>)">查询</a>--------------省略----------------------</html:form>
function doQuery(thisform,type) { if(type ==1) thisform.action = "lhzxOrderForecustinfo.do?action=listForAudit"; else thisform.action = "lhzxOrderForecustinfo.do?action=listAudited"; thisform.submit(); }