borrowdrawpicture_jsp.java

来自「图书管理系统。JSP+Struts(MVC框架)sql2000数据库」· Java 代码 · 共 105 行

JAVA
105
字号
package org.apache.jsp.priture;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;
import java.util.List;
import com.actionForm.BorrowBookForm;

public final class borrowDrawPicture_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static java.util.Vector _jspx_dependants;

  public java.util.List getDependants() {
    return _jspx_dependants;
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    JspFactory _jspxFactory = null;
    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html; charset=gb2312");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			"", true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n\r\n\r\n<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<title>借阅图表分析查询</title>\r\n</head>\r\n");
      com.priture.RoundPriture draw = null;
      synchronized (request) {
        draw = (com.priture.RoundPriture) _jspx_page_context.getAttribute("draw", PageContext.REQUEST_SCOPE);
        if (draw == null){
          draw = new com.priture.RoundPriture();
          _jspx_page_context.setAttribute("draw", draw, PageContext.REQUEST_SCOPE);
        }
      }
      out.write('\r');
      out.write('\n');
      com.dao.BorrowBookDao dao = null;
      synchronized (request) {
        dao = (com.dao.BorrowBookDao) _jspx_page_context.getAttribute("dao", PageContext.REQUEST_SCOPE);
        if (dao == null){
          dao = new com.dao.BorrowBookDao();
          _jspx_page_context.setAttribute("dao", dao, PageContext.REQUEST_SCOPE);
        }
      }
      out.write("\r\n<body>\r\n");

draw.setPictureTitle("借阅图表分析查询");
draw.setPictureWidth(600);
draw.setPictureHeight(400);
List list=null;
String[] xTitle=new String[list.size()];

String[] data=new String[list.size()];






for(int i=0;i<list.size();i++){
BorrowBookForm form=(BorrowBookForm)list.get(i);
xTitle[i]=form.getBookName();


data[i]=form.getId();

}

draw.setTitle(xTitle);
draw.setData(data);
draw.draw(response);

      out.write("\r\n</body>\r\n</html>\r\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?