91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 6.88MB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2023-10-23
  • 語言: Java
  • 標簽: 源代碼??

資源簡介

上學(xué)期老師給的作業(yè),導(dǎo)入myeclipse即可運行

資源截圖

代碼片段和文件信息

package?com.action;

import?org.apache.struts.action.ActionMapping;
import?org.apache.struts.action.ActionForm;
import?javax.servlet.http.HttpServletRequest;
import?javax.servlet.http.HttpServletResponse;
import?org.apache.struts.action.ActionForward;
import?com.actionForm.BookForm;
import?org.apache.struts.action.Action;
import?com.dao.BookDAO;
import?java.util.Date;

public?class?Book?extends?Action?{
????private?BookDAO?bookDAO?=?null;
????public?Book()?{
????????this.bookDAO?=?new?BookDAO();
????}

????public?ActionForward?execute(ActionMapping?mapping?ActionForm?form
?????????????????????????????????HttpServletRequest?request
?????????????????????????????????HttpServletResponse?response)?{
????????String?action?=request.getParameter(“action“);
????????System.out.println(“\nbook*********************action=“+action);
????????if(action==null||““.equals(action)){
????????????request.setAttribute(“error““您的操作有誤!“);
????????????return?mapping.findForward(“error“);
????????}else?if(“bookAdd“.equals(action)){
????????????return?bookAdd(mappingformrequestresponse);
????????}else?if(“bookQuery“.equals(action)){
????????????return?bookQuery(mappingformrequestresponse);
????????}else?if(“bookModifyQuery“.equals(action)){
????????????return?bookModifyQuery(mappingformrequestresponse);
????????}else?if(“bookModify“.equals(action)){
????????????return?bookModify(mappingformrequestresponse);
????????}else?if(“bookDel“.equals(action)){
????????????return?bookDel(mappingformrequestresponse);
????????}else?if(“bookDetail“.equals(action)){
????????????return?bookDetail(mappingformrequestresponse);
????????}else?if(“bookifQuery“.equals(action)){
????????????return?bookifQuery(mappingformrequestresponse);
????????}
????????request.setAttribute(“error““操作失敗!“);
????????return?mapping.findForward(“error“);
????}
????/***********************添加圖書信息**************************/
????private?ActionForward?bookAdd(ActionMapping?mapping?ActionForm?form
??????????????????????????????HttpServletRequest?request
??????????????????????????????HttpServletResponse?response){
???????????BookForm?bookForm?=?(BookForm)?form;
???????????bookForm.setBarcode(bookForm.getBarcode());
???????????bookForm.setBookName(bookForm.getBookName());
???????????bookForm.setTypeId(bookForm.getTypeId());
???????????bookForm.setAuthor(bookForm.getAuthor());
???????????bookForm.setTranslator(bookForm.getTranslator());
???????????bookForm.setIsbn(bookForm.getIsbn());
???????????bookForm.setPrice(bookForm.getPrice());
???????????bookForm.setPage(bookForm.getPage());
???????????bookForm.setBookcaseid(bookForm.getBookcaseid());????
???????????//獲取系統(tǒng)日期
???????????Date?date1=new?Date();
???????????java.sql.Date?date=new?java.sql.Date(date1.getTime());
???????????bookForm.setInTime(date.toString());
???????????bookForm.setOperator(bookForm.getOperator());
???????????int?a=bookDAO.insert(bookForm);
???????????if(a==1){

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2013-06-15?17:20??源代碼\
?????目錄???????????0??2013-06-15?17:22??源代碼\數(shù)據(jù)庫\
?????目錄???????????0??2013-06-15?17:22??源代碼\數(shù)據(jù)庫\db_librarySys\
?????文件??????????65??2009-04-17?20:12??源代碼\數(shù)據(jù)庫\db_librarySys\db.opt
?????文件??????????60??2009-04-17?20:12??源代碼\數(shù)據(jù)庫\db_librarySys\tb_bookcase.MYD
?????文件????????2048??2009-04-17?20:12??源代碼\數(shù)據(jù)庫\db_librarySys\tb_bookcase.MYI
?????文件????????8624??2009-04-17?20:12??源代碼\數(shù)據(jù)庫\db_librarySys\tb_bookcase.frm
?????文件?????????728??2013-06-15?17:20??源代碼\數(shù)據(jù)庫\db_librarySys\tb_bookinfo.MYD
?????文件????????2048??2013-06-14?12:00??源代碼\數(shù)據(jù)庫\db_librarySys\tb_bookinfo.MYI
?????文件????????8970??2009-04-17?20:12??源代碼\數(shù)據(jù)庫\db_librarySys\tb_bookinfo.frm
?????文件??????????64??2009-04-17?20:12??源代碼\數(shù)據(jù)庫\db_librarySys\tb_booktype.MYD
?????文件????????2048??2009-04-17?20:12??源代碼\數(shù)據(jù)庫\db_librarySys\tb_booktype.MYI
?????文件????????8624??2009-04-17?20:12??源代碼\數(shù)據(jù)庫\db_librarySys\tb_booktype.frm
?????文件?????????288??2013-06-14?11:39??源代碼\數(shù)據(jù)庫\db_librarySys\tb_borrow.MYD
?????文件????????2048??2013-06-14?12:00??源代碼\數(shù)據(jù)庫\db_librarySys\tb_borrow.MYI
?????文件????????8780??2009-04-17?20:12??源代碼\數(shù)據(jù)庫\db_librarySys\tb_borrow.frm
?????文件?????????112??2013-06-14?11:38??源代碼\數(shù)據(jù)庫\db_librarySys\tb_giveback.MYD
?????文件????????2048??2013-06-14?12:00??源代碼\數(shù)據(jù)庫\db_librarySys\tb_giveback.MYI
?????文件????????8704??2009-04-17?20:12??源代碼\數(shù)據(jù)庫\db_librarySys\tb_giveback.frm
?????文件?????????136??2009-04-17?20:12??源代碼\數(shù)據(jù)庫\db_librarySys\tb_library.MYD
?????文件????????2048??2009-04-17?20:12??源代碼\數(shù)據(jù)庫\db_librarySys\tb_library.MYI
?????文件????????8842??2009-04-17?20:12??源代碼\數(shù)據(jù)庫\db_librarySys\tb_library.frm
?????文件??????????88??2009-04-17?20:12??源代碼\數(shù)據(jù)庫\db_librarySys\tb_manager.MYD
?????文件????????2048??2009-04-17?20:12??源代碼\數(shù)據(jù)庫\db_librarySys\tb_manager.MYI
?????文件????????8614??2009-04-17?20:12??源代碼\數(shù)據(jù)庫\db_librarySys\tb_manager.frm
?????文件??????????13??2009-04-17?20:12??源代碼\數(shù)據(jù)庫\db_librarySys\tb_parameter.MYD
?????文件????????2048??2009-04-17?20:12??源代碼\數(shù)據(jù)庫\db_librarySys\tb_parameter.MYI
?????文件????????8624??2009-04-17?20:12??源代碼\數(shù)據(jù)庫\db_librarySys\tb_parameter.frm
?????文件??????????56??2009-04-17?20:12??源代碼\數(shù)據(jù)庫\db_librarySys\tb_publishing.MYD
?????文件????????1024??2009-04-17?20:12??源代碼\數(shù)據(jù)庫\db_librarySys\tb_publishing.MYI
?????文件????????8596??2009-04-17?20:12??源代碼\數(shù)據(jù)庫\db_librarySys\tb_publishing.frm
............此處省略375個文件信息

評論

共有 條評論