主题:求救:时间紧急,31号就要到了,请有经验的前辈指教.
还有下面的代码,都是数据库连不上,数据库都设计好了,源名和库名都没错,而且程序中涉及到的变量在数据库中也都有,
添加图书页面代码:
addBook.jsp
<CENTER> <Font face=隶书 color=cyan size=8>欢迎光临席席图书管理系统 </CENTER>
</Font>
<%@ page contentType="text/html;charset=GB2312" %>
<table align="center" border="0" width="700" height="16" bg="c2.jpg" bgcolor="yellow" spaining="1">
<tr>
<td width="100%">
<a href="<%=response.encodeURL("readBook.jsp")%>">图书查询 </a> |
<a href="<%=response.encodeURL("addBook.jsp")%>">添加图书 </a> |
<a href="<%=response.encodeURL("changeBook.jsp")%>">修改图书 </a> |
<a href="<%=response.encodeURL("deleteBook.jsp")%>">删除图书 </a> |
<a href="<%=response.encodeURL("readUser.jsp")%>">查询读者 </a> |
<a href="<%=response.encodeURL("addUser.jsp")%>">添加读者 </a> |
<a href="<%=response.encodeURL("changeUser.jsp")%>">修改读者 </a> |
<a href="<%=response.encodeURL("deleteUser.jsp")%>">删除读者 </a>
</tr>
</table>
<H2>
<CENTER> <Font face=楷体_GB2312 color=cyan>********您现在的位置是图书添加界面********</CENTER>
</Font>
<HTML>
<BODY bgcolor=green>
<Table align="center" Border><BR>
<TR width=300><Font size=4 color=yellow face=楷体_GB2312>请输入要添加的图书信息:
</TR><BR>
<FORM action="addResult.jsp" Method=post>
<TR>
<TD width=300 align="left"><Font size=3 color=yellow>
<BR>图书编号:
<Input type="text" name="bookid"><BR><BR>
</TD>
<TD width=300 align="left"><Font size=3 color=yellow>
<BR>书名:
<Input type="text" name="bookname"><BR><BR>
</TD>
</TR>
<TR>
<TD width=300 align="left"><Font size=3 color=yellow>
<BR>作者:
<Input type="text" name="author"><BR><BR>
</TD>
<TD width=300 align="left"><Font size=3 color=yellow>
<BR>出版社:
<Input type="text" name="press"><BR><BR>
</TD>
</TR>
<TR>
<TD width=300 align="left"><Font size=3 color=yellow>
<BR>出版日期:
<Input type="text" name="date"><BR><BR>
</TD>
<TD width=300 align="left"><Font size=3 color=yellow>
<BR>类别:
<Input type="text" name="type"><BR><BR>
</TD>
</TR>
<TR>
<TD width=300 align="left"><Font size=3 color=yellow>
<BR>价格:
<Input type="text" name="price"><BR><BR>
</TD>
<TD width=300 align="center"><Font size=3 color=yellow>
<Input type="submit" name="c1" value="添加" >
</TD>
</TR>
</Form>
</Table>
<BR><CENTER>
<H3><Font size=3 color=yellow>
<a href="<%=response.encodeURL("library.jsp")%>"><Font size=3 face=楷体_GB2312 color=cyan> 返回首页 </a>
</CENTER>
</BODY>
</HTML>
添加图书页面代码:
addBook.jsp
<CENTER> <Font face=隶书 color=cyan size=8>欢迎光临席席图书管理系统 </CENTER>
</Font>
<%@ page contentType="text/html;charset=GB2312" %>
<table align="center" border="0" width="700" height="16" bg="c2.jpg" bgcolor="yellow" spaining="1">
<tr>
<td width="100%">
<a href="<%=response.encodeURL("readBook.jsp")%>">图书查询 </a> |
<a href="<%=response.encodeURL("addBook.jsp")%>">添加图书 </a> |
<a href="<%=response.encodeURL("changeBook.jsp")%>">修改图书 </a> |
<a href="<%=response.encodeURL("deleteBook.jsp")%>">删除图书 </a> |
<a href="<%=response.encodeURL("readUser.jsp")%>">查询读者 </a> |
<a href="<%=response.encodeURL("addUser.jsp")%>">添加读者 </a> |
<a href="<%=response.encodeURL("changeUser.jsp")%>">修改读者 </a> |
<a href="<%=response.encodeURL("deleteUser.jsp")%>">删除读者 </a>
</tr>
</table>
<H2>
<CENTER> <Font face=楷体_GB2312 color=cyan>********您现在的位置是图书添加界面********</CENTER>
</Font>
<HTML>
<BODY bgcolor=green>
<Table align="center" Border><BR>
<TR width=300><Font size=4 color=yellow face=楷体_GB2312>请输入要添加的图书信息:
</TR><BR>
<FORM action="addResult.jsp" Method=post>
<TR>
<TD width=300 align="left"><Font size=3 color=yellow>
<BR>图书编号:
<Input type="text" name="bookid"><BR><BR>
</TD>
<TD width=300 align="left"><Font size=3 color=yellow>
<BR>书名:
<Input type="text" name="bookname"><BR><BR>
</TD>
</TR>
<TR>
<TD width=300 align="left"><Font size=3 color=yellow>
<BR>作者:
<Input type="text" name="author"><BR><BR>
</TD>
<TD width=300 align="left"><Font size=3 color=yellow>
<BR>出版社:
<Input type="text" name="press"><BR><BR>
</TD>
</TR>
<TR>
<TD width=300 align="left"><Font size=3 color=yellow>
<BR>出版日期:
<Input type="text" name="date"><BR><BR>
</TD>
<TD width=300 align="left"><Font size=3 color=yellow>
<BR>类别:
<Input type="text" name="type"><BR><BR>
</TD>
</TR>
<TR>
<TD width=300 align="left"><Font size=3 color=yellow>
<BR>价格:
<Input type="text" name="price"><BR><BR>
</TD>
<TD width=300 align="center"><Font size=3 color=yellow>
<Input type="submit" name="c1" value="添加" >
</TD>
</TR>
</Form>
</Table>
<BR><CENTER>
<H3><Font size=3 color=yellow>
<a href="<%=response.encodeURL("library.jsp")%>"><Font size=3 face=楷体_GB2312 color=cyan> 返回首页 </a>
</CENTER>
</BODY>
</HTML>