日期:2014-05-20  浏览次数:20721 次

关于form表单提交的方式
一般情况下,在form标签中直接增加,如下
<FORM ACTION=“getpost.php” METHOD=“post”>

但是,如果在请求过程中的url指定,该如何写呢,
src="../basis/areaView.action?areaId="+node.id+"&datestr"+d;
如果上面的语句要指定post方法提交,该怎么写呢

------解决方案--------------------
document.getElementById("form");
form.method="post";
form.action="xxx.action?xxx="+xxx+"&xxx="+xxx;
form.submit;
------解决方案--------------------
貌似通过<a href="xxx"></a>或location.href="xxx",都是method="get"吧。。偶没试过。反正用struts1/2的话,都会执行execute。至于servlet的话,到底是doGet还是doPost就不清楚了。。