首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

Struts 1.2 html:form的action和form的action区别,还有如果2个都有执行哪个解决方案

2012-06-11 
Struts 1.2 html:form的action和form的action区别,还有如果2个都有执行哪个现在有struts1.2的代码 , 有这

Struts 1.2 html:form的action和form的action区别,还有如果2个都有执行哪个
现在有struts1.2的代码 , 有这么一段。

XML code
<html:form action="lhzxOrderForecustinfo.do?action=list" method="post">--------------省略----------------------<a href="#" class="LinkBut" onclick="doQuery(document.forms[0],<%=flag%>)">查询</a>--------------省略----------------------</html:form>


上面有一个js
JScript code
 function doQuery(thisform,type) {            if(type ==1)               thisform.action = "lhzxOrderForecustinfo.do?action=listForAudit";            else               thisform.action = "lhzxOrderForecustinfo.do?action=listAudited";                thisform.submit();        } 


不太了解了,js的action地址和html:form的action是怎么执行的?尤其是<html:form action是什么情况下用的?

还有html:form的action和form的action区别,我写过一个页面没用html:form也行,但是如果其中用到bean的标签的话会出错?

求解



[解决办法]
html:form调用是和普通的form是一样的,只不过是一个使用了标签,一个没用而已。
[解决办法]
<html:form> 只要submit的时候才请求后台。。。。

热点排行