如果jdbc:mysql://127.0.0.1:3306/mirco_message?useSSL=true&characterEncoding=utf8配置文件报错,把&改成&就好了
jdbc:mysql://127.0.0.1:3306/mirco_message?useSSL=true&characterEncoding=utf8
jdbc:mysql://127.0.0.1:3306/mirco_message?useSSL=true&characterEncoding=utf8
2018-03-03
如果jdbc:mysql://127.0.0.1:3306/mirco_message?useSSL=true&characterEncoding=utf8配置文件报错,把&改成&就好了
jdbc:mysql://127.0.0.1:3306/mirco_message?useSSL=true&characterEncoding=utf8
jdbc:mysql://127.0.0.1:3306/mirco_message?useSSL=true&characterEncoding=utf8
2018-03-03
3.<script type="text/javascript">
function deleteOne(path,id){
if(confirm("确定要删除吗?")){
document.getElementById("id").value=id;
document.getElementById("mainForm").action = path+"/DeleteOneServlet.action";
document.getElementById("mainForm").submit();
}
}
</script>
function deleteOne(path,id){
if(confirm("确定要删除吗?")){
document.getElementById("id").value=id;
document.getElementById("mainForm").action = path+"/DeleteOneServlet.action";
document.getElementById("mainForm").submit();
}
}
</script>
2018-02-22
老师的课后习题,我把自己的答案分享一下,亲测可用:
1.在<form>里加上
<input type="hidden" id="id" name="id" />
2.a标签改成:
<a href="#" onclick="deleteOne('${pageContext.request.contextPath}',${message.id})">删除</a>
地方不够,分两次
1.在<form>里加上
<input type="hidden" id="id" name="id" />
2.a标签改成:
<a href="#" onclick="deleteOne('${pageContext.request.contextPath}',${message.id})">删除</a>
地方不够,分两次
2018-02-22
最赞回答 / 豆芽丶
Connection conn=DriverManager.getConnection("jdbc:mysql://127.0.0.1:3306/micro_message?useUnicode=true&characterEncoding=UTF-8","root","123456");这行这样写就可以了
2018-02-18