【Java开源代码栏目提醒】:网学会员Java开源代码为您提供customerDeal$jsp.java参考,解决您在customerDeal$jsp.java学习中工作中的难题,参考学习。
package org.apache.jsp;
import java.
sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
public class customerDeal$jsp extends HttpJspBase {
// begin [file="/customerDeal.jsp";from=(13,0);to=(13,96)]
// end
static {
}
public customerDeal$jsp( ) {
}
private static boolean _jspx_inited = false;
public final void _jspx_init() throws org.apache.jasper.runtime.JspException {
}
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;
String _value = null;
try {
if (_jspx_inited == false) {
synchronized (this) {
if (_jspx_inited == false) {
_jspx_init();
_jspx_inited = true;
}
}
}
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html; charset=GBK");
pageContext = _jspxFactory.getPageContext(this, request, response,
"", true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
// begin [file="/customerDeal.jsp";from=(0,2);to=(9,0)]
/**
* Title: 鍟嗗簵璐墿绠$悊绯荤粺鐨勫畬鏁村疄鐜?
* Description: 鏁欏绀鸿寖
* Copyright: Copyright (c) 2003
* Company: 鍖椾含甯堣寖澶у璁$畻鏈虹郴
* @author 瀛欎竴鏋?
* @version 1.0
*/
// end
// HTML // begin [file="/customerDeal.jsp";from=(9,2);to=(10,0)]
out.write("\r\n");
// end
// HTML // begin [file="/customerDeal.jsp";from=(10,48);to=(12,0)]
out.write("\r\n<html>\r\n");
// end
// HTML // begin [file="/customerDeal.jsp";from=(12,30);to=(13,0)]
out.write("\r\n");
// end
// begin [file="/customerDeal.jsp";from=(13,0);to=(13,96)]
shopmanagesystem.shopManageSystemBean shopManageBean = null;
boolean _jspx_specialshopManageBean = false;
synchronized (session) {
shopManageBean= (shopmanagesystem.shopManageSystemBean)
pageContext.getAttribute("shopManageBean",PageContext.SESSION_SCOPE);
if ( shopManageBean == null ) {
_jspx_specialshopManageBean = true;
try {
shopManageBean = (shopmanagesystem.shopManageSystemBean) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "shopmanagesystem.shopManageSystemBean");
} catch (ClassNotFoundException exc) {
throw new InstantiationException(exc.getMessage());
} catch (Exception exc) {
throw new ServletException (" Cannot create bean of class "+"shopmanagesystem.shopManageSystemBean", exc);
}
pageContext.setAttribute("shopManageBean", shopManageBean, PageContext.SESSION_SCOPE);
}
}
if(_jspx_specialshopManageBean == true) {
// end
// begin [file="/customerDeal.jsp";from=(13,0);to=(13,96)]
}
// end
//
HTML // begin [file="/customerDeal.jsp";from=(13,96);to=(13,98)]
out.write(" ");
// end
// begin [file="/customerDeal.jsp";from=(13,100);to=(13,129)]
/*浣跨敤shopManageSystemBean鐨勫疄渚?/
// end
// HTML // begin [file="/customerDeal.jsp";from=(13,131);to=(20,2)]
out.write("\r\n<head>\r\n<title>鏌ョ湅瀹屾垚鐨勪氦鏄?/title>\r\n</head>\r\n<body>\r\n<h1 align=\"center\">瀹屾垚浜ゆ槗鍒楄〃</h1>\r\n<p>\r\n ");
// end
// begin [file="/customerDeal.jsp";from=(20,4);to=(52,0)]
try
{
ResultSet rs = shopManageBean.getDealInfo(); //鑾峰彇鎵鏈夐【瀹氦鏄撲俊鎭?
out.println("<table width=75% border=1 align=center><tr>"); //鍒楀嚭椤惧浜ゆ槗琛ㄦ牸鐨勮〃澶?
out.println("<td align=center>鍞嚭浜у搧缂栧彿</td>");
out.println("<td align=center>鍞嚭浜у搧鍚嶇О</td>");
out.println("<td align=center>鍞嚭浜у搧鏁伴噺</td>");
out.println("<td align=center>椤惧濮撳悕</td>");
out.println("<td align=center>椤惧鍦板潃</td>");
out.println("</tr>");
while(rs.next()) //鍒楀嚭椤惧浜ゆ槗淇℃伅
{
String productID = rs.getString("product_id");
String productName = rs.getString("product_name");
String buyNumber = rs.getString("buy_number");
String customerName = rs.getString("customer_name");
String customerAddress = rs.getString("customer_address");
out.println("<tr>");
out.println("<td align=center>" + productID + "</td>");
out.printl