JSP SERVLET 一次insert安插两条相同的记录
JSP SERVLET 一次insert插入两条相同的记录
出现问题的代码
<form name="thisForm" method="post" onsubmit="checkForm()">
…………
<input type="submit" value="提交">
改成下面可以解决问题
<form name="thisForm" method="post">
…………
<input type="button" value="提交" onclick="checkForm()">