The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
运行left.html时,点击查询图书和添加图书都出现下面这个错误,是因为我数据库没连接对吗,还是其他原因?
<html>
<head>
<title>TODO supply a title</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body style="background: seashell;">
<div>图书出版管理功能:</div>
<p><a href="bookinfo.jsp" target="content"><button type="button">查询图书</button></a></p>
<p><a href="bookAddInfo.jsp" target="content"><button type="button">添加图书</button></a></p>
</body>
</html>
bookAddInfo.jsp里的代码
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<h1>添加图书信息</h1>
<%
String info = (String)request.getAttribute("info");
%>
<%=info%>
<form action="insertBook.jsp">
<table border="1">
<tr>
<td>属性</td>
<td>值</td>
</tr>
<tr>
<td>图书编码</td>
<td><input type="text" name="bookId" value=""></td>
</tr>
<tr>
<td>图书名</td>
<td><input type="text" name="bookName" value=""></td>
</tr>
<tr>
<td>作者</td>
<td><input type="text" name="author" value=""></td>
</tr>
<tr>
<td>出版日期</td>
<td><input type="text" name="publishDate" value="yyyy-mm-dd"></td>
</tr>
<tr>
<td>价格</td>
<td><input type="text" name="price" value=""></td>
</tr>
<tr>
<td>库存</td>
<td><input type="text" name="stock" value=""></td>
</tr>
<tr>
<td><input type="reset" value="重置"></td>
<td><input type="submit" value="添加"></td>
</tr>
</table>
</form>
</body>
</html>
路径错误