【正文】
if(state!=1) (success!)。 DB db=new DB()。 } catch (ParseException e) { 數(shù)據(jù)庫系統(tǒng)原理課程設(shè)計(jì) 學(xué)生學(xué)籍管理系統(tǒng) 21 // TODO Autogenerated catch block ()。 Date PublishDate = null。 int Count=((Count))。 String PublishHouse=(PublishHouse)。 int BookPrice=((BookPrice))。 PrintWriter out = ()。 ()。 (/HTML)。 (, using the GET method)。 ( This is )。 ( HEADTITLEA Servlet/TITLE/HEAD)。 (!DOCTYPE HTML PUBLIC \//W3C//DTD HTML Transitional//EN\)。 // Just puts destroy string in log // Put your code here } /** * The doGet method of the servlet. br * * This method is called when a form has its tag value method equals to get. * * param request the request send by the client to the server * param response the response send by the server to the client * throws ServletException if an error occurred 數(shù)據(jù)庫系統(tǒng)原理課程設(shè)計(jì) 學(xué)生學(xué)籍管理系統(tǒng) 20 * throws IOException if an error occurred */ public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { (text/html)。 public class addBook extends HttpServlet { /** * Constructor of the object. */ public addBook() { super()。 import 。 import 。 import 。 import 。 } 數(shù)據(jù)庫系統(tǒng)原理課程設(shè)計(jì) 學(xué)生學(xué)籍管理系統(tǒng) 19 % /table /center /body /html Sevlet: package ligaogang。 String introductionName=(introduction)。 publishDate=(publishDate)。 float price=(price)。 String bookName=(bookName)。 tr td圖書編號(hào) /td td圖書名 /td td價(jià)格 /td td數(shù)量 /td td出版日期 /td td出版社 /td td類別 /td td書類代號(hào) /td /tr % try{ ResultSet rt =(ResultSet)(resultset)。 starting page/title meta equiv=pragma content=nocache meta equiv=cachecontrol content=nocache meta equiv=expires content=0 meta equiv=keywords content=keyword1,keyword2,keyword3 meta equiv=description content=This is my page link rel=stylesheet type=text/css href=css/ /head body ngcontroller=bookControllercenter form action= method=post table width=80% border=1 id=table1 style=bordercolor:FFCCFF。 % !DOCTYPE HTML PUBLIC //W3C//DTD HTML Transitional//EN html ngapp=bookModule head base href=%=basePath% titleMy JSP 39。 % page language=java import=.* pageEncoding=utf8% % page import=.* % % page import=.* % jsp:useBean id=db class= scope=page/ % String path = ()。 數(shù)據(jù)庫系統(tǒng)原理課程設(shè)計(jì) 學(xué)生學(xué)籍管理系統(tǒng) 15 主要參考文獻(xiàn) javaweb實(shí)戰(zhàn) 1200例 Angularjs中文社區(qū)