当前位置: 代码迷 >> JavaScript >> JSP SERVLET 一次insert安插两条相同的记录
  详细解决方案

JSP SERVLET 一次insert安插两条相同的记录

热度:191   发布时间:2012-09-15 19:09:28.0
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()">

  相关解决方案