<form action="apply.do?method=sp" method="post" id="f1" name="f1">
申请人:<input type="text" name=time ><br/>
地点:<input type="text" name=place><br/>
目的:<input type="text" name=target><br/>
<input type="button" name="agree" value="同意" onclick="examine()"/>
<input type="button" name="disagree" value="不同意" onclick="examine()">
</form>
JS函数,用于点击按钮提交表单:
function examine(){
if(confirm("确定?")){
document.f1.submit();
}
}
使用的sprin mvc框架,如何在后台,也就是action所对应的java函数方法中判断用户是点击的哪个按钮?
怎样从后台获取按钮的值?用requset.getParameter("").equals("")判断不行。
请教具体代码
谢谢