Java web项目 图书管理系统图书修改部分代码

<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="com.dao.BookDAO" %>
<%@ page import="com.dao.BookTypeDAO" %>
<%@ page import="com.actionForm.BookForm" %>
<%@ page import="com.actionForm.BookTypeForm"%>
<%@ page import="com.dao.BookCaseDAO" %>
<%@ page import="com.actionForm.BookCaseForm" %>
<%@ page import="com.dao.PublishingDAO" %>
<%@ page import="com.actionForm.PublishingForm" %>
<%@ page import="java.util.*"%>

<%
String str=null;
BookTypeDAO bookTypeDAO=new BookTypeDAO();
Collection coll_type=(Collection)bookTypeDAO.query(str);
if(coll_type==null || coll_type.isEmpty()){
	out.println("");
}else{
	  Iterator it_type=coll_type.iterator();
	  int typeID=0;
	  String typename1="";
	  BookCaseDAO bookcaseDAO=new BookCaseDAO();
	  String str1=null;
	  Collection coll_bookcase=(Collection)bookcaseDAO.query(str1);
	  if(coll_bookcase==null || coll_bookcase.isEmpty()){
	  	out.println("");
	  }else{
	  	Iterator it_bookcase=coll_bookcase.iterator();
	  	int bookcaseID=0;
	  	String bookcasename="";
	  PublishingDAO pubDAO=new PublishingDAO();
	  String str2=null;
	  Collection coll_pub=(Collection)pubDAO.query(str2);
	  if(coll_pub==null || coll_pub.isEmpty()){
	  	out.println("");
	  }else{	
	  	Iterator it_pub=coll_pub.iterator();
	  	String isbn="";
	  	String pubname="";	 
		BookForm bookForm=(BookForm)request.getAttribute("bookQueryif"); 	
%>


图书馆管理系统



<%@include file="banner.jsp"%>
<%@include file="navigation.jsp"%>
当前位置:图书管理 > 图书档案管理 > 修改图书信息 >>>
<% int ID=bookForm.getId().intValue(); String bookname=bookForm.getBookName(); String barcode=bookForm.getBarcode(); if(barcode==null) barcode=""; int TypeId=bookForm.getTypeId(); String typename=bookForm.getTypeName(); String author=bookForm.getAuthor(); String translator=bookForm.getTranslator(); String ISBN=bookForm.getIsbn(); String publishing=bookForm.getPublishing(); Float price=bookForm.getPrice(); int pages=bookForm.getPage(); int bookcaseid=bookForm.getBookcaseid(); String bookcase=bookForm.getBookcaseName(); String inTime=bookForm.getInTime(); String operator=bookForm.getOperator(); %>
条 形 码:
图书名称: *
图书类型:
作者:
译者:
出版社:
价格: (元) *
页码:
书架:
   
<%@ include file="copyright.jsp"%>
<%} } }%>

你可能感兴趣的:(程序,程序,数据结构,java)