⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 __dingdanguanli.java

📁 一个使用EJB开发的真实项目
💻 JAVA
字号:
/* compiled from JSP: /dingdanguanli.jsp
*
* This code was automatically generated at 17:30:16 on 2007-1-14
* by weblogic.servlet.jsp.Jsp2Java -- do not edit.
*/

package jsp_servlet;

import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;

// User imports
import java.util.*; //[ /dingdanguanli.jsp; Line: 4]import ejb.GouWuCheInfoVo; //[ /dingdanguanli.jsp; Line: 5]

// built-in init parameters:
// boolean             _verbose -- wants debugging

// Well-known variables:
// JspWriter out                  -- to write to the browser
// HttpServletRequest  request    -- the request object.
// HttpServletResponse response   -- the response object.
// PageContext pageContext        -- the page context for this JSP
// HttpSession session            -- the session object for the client (if any)
// ServletContext application     -- The servlet (application) context
// ServletConfig config           -- The ServletConfig for this JSP
// Object page                    -- the instance of this page's implementation class (i.e., 'this')

/**
* This code was automatically generated at 17:30:16 on 2007-1-14
* by weblogic.servlet.jsp.Jsp2Java -- do not edit.
*
* Copyright (c) 2007 by BEA Systems, Inc. All Rights Reserved.
*/
public final class __dingdanguanli
extends
weblogic.servlet.jsp.JspBase
implements weblogic.servlet.jsp.StaleIndicator
{
  
  // StaleIndicator interface  public boolean _isStale() {    weblogic.servlet.jsp.StaleChecker sci =(weblogic.servlet.jsp.StaleChecker)(getServletConfig().getServletContext());    java.io.File f = null;    long lastModWhenBuilt = 0L;    if (sci.isResourceStale("/dingdanguanli.jsp", 1168766260000L, "8.1.4.0", "Asia/Shanghai")) return true;    return false;  }    public static boolean _staticIsStale(weblogic.servlet.jsp.StaleChecker sci) {    java.io.File f = null;    long lastModWhenBuilt = 0L;    if (sci.isResourceStale("/dingdanguanli.jsp", 1168766260000L, "8.1.4.0", "Asia/Shanghai")) return true;    return false;  }      private static void _writeText(ServletResponse rsp, JspWriter out, String block, byte[] blockBytes) throws IOException {    if (!_WL_ENCODED_BYTES_OK || _hasEncodingChanged(rsp)) {      out.print(block);    } else {      ((weblogic.servlet.jsp.ByteWriter)out).write(blockBytes, block);    }   }      private static boolean _hasEncodingChanged(ServletResponse rsp) {    if (_WL_ORIGINAL_ENCODING.equals(rsp.getCharacterEncoding())) {      return false;    }    return true;  }    private static boolean _WL_ENCODED_BYTES_OK = true;    private static final String _WL_ORIGINAL_ENCODING = "GBK";    private static byte[] _getBytes(String block) {    try {      return block.getBytes(_WL_ORIGINAL_ENCODING);    } catch (java.io.UnsupportedEncodingException u) {      _WL_ENCODED_BYTES_OK = false;    }    return null;  }  private final static String _wl_block0 = "\r\n";  private final static byte[] _wl_block0Bytes = _getBytes(_wl_block0);  private final static String _wl_block1 = "\r\n";  private final static byte[] _wl_block1Bytes = _getBytes(_wl_block1);  private final static String _wl_block2 = "\r\n";  private final static byte[] _wl_block2Bytes = _getBytes(_wl_block2);  private final static String _wl_block3 = "\r\n";  private final static byte[] _wl_block3Bytes = _getBytes(_wl_block3);  private final static String _wl_block4 = "\r\n<html>\r\n<head>\r\n<title>\r\ndingdanguanli\r\n</title>\r\n</head>\r\n<body bgcolor=\"#AFAFAF\">\r\n";  private final static byte[] _wl_block4Bytes = _getBytes(_wl_block4);  private final static String _wl_block5 = "\r\n<form name=\"form1\" method=\"post\" action=\"dingdanguanlixuanze.jsp\">\r\n  选择查看类型\r\n  <select name=\"select\">\r\n    <option selected>全部订单</option>\r\n    <option>已支付的订单</option>\r\n    <option>指定订单号</option>\r\n    <option>指定客户ID</option>\r\n  </select>\r\n  <input type=\"text\" name=\"shuru\">\r\n  <input type=\"submit\" name=\"Submit\" value=\"查看\">\r\n</form>\r\n<hr>\r\n<h5>注意:修改时,除产品名能包含中文,其他信息不应该包含中文,以防没必要发生的问题</h5>\r\n<table width=\"1111\" height=\"47\" border=\"1\">\r\n  <tr>\r\n    <td width=\"157\"><div align=\"center\">订单号(不可修改)</div></td>\r\n    <td width=\"97\"><div align=\"center\">\r\n      <p>用户ID</p>\r\n      <p>(不可修改)</p>\r\n    </div></td>\r\n    <td width=\"105\"><div align=\"center\">\r\n      <p>产品序列号</p>\r\n      <p>(不可修改)</p>\r\n    </div></td>\r\n    <td width=\"65\"><div align=\"center\">产品名</div></td>\r\n    <td width=\"90\"><div align=\"center\">产品型号</div></td>\r\n    <td width=\"108\"><div align=\"center\">产品价格/1</div></td>\r\n    <td width=\"104\"><div align=\"center\">购买数量</div></td>\r\n    <td width=\"73\"><div align=\"center\">支付</div></td>\r\n    <td width=\"68\"><div align=\"center\">修改</div></td>\r\n    <td width=\"63\">删除</td>\r\n    <td width=\"111\"><div align=\"center\">删除添加到销售记录</div></td>\r\n  </tr>\r\n</table>\r\n";  private final static byte[] _wl_block5Bytes = _getBytes(_wl_block5);  private final static String _wl_block6 = "\r\n";  private final static byte[] _wl_block6Bytes = _getBytes(_wl_block6);  private final static String _wl_block7 = "\r\n<form name=\"form2\" method=\"post\" action=\"dingdanguanliChuLi.jsp\">\r\n<table width=\"1178\" height=\"35\" border=\"1\">\r\n  <tr>\r\n    <td width=\"167\"><div align=\"center\">\r\n      <input name=\"dingDanHao\" type=\"text\" id=\"dingDanHao\" size=\"10\" readOnly value=\"";  private final static byte[] _wl_block7Bytes = _getBytes(_wl_block7);  private final static String _wl_block8 = "\">\r\n</div></td>\r\n<td width=\"99\"><div align=\"center\">\r\n  <input name=\"userCode\" type=\"text\" id=\"userCode\" size=\"8\" readOnly value=\"";  private final static byte[] _wl_block8Bytes = _getBytes(_wl_block8);  private final static String _wl_block9 = "\">\r\n</div></td>\r\n<td width=\"96\"><div align=\"center\">\r\n  <input name=\"number\" type=\"text\" id=\"number\" size=\"8\"  readOnly value=\"";  private final static byte[] _wl_block9Bytes = _getBytes(_wl_block9);  private final static String _wl_block10 = "\">\r\n</div></td>\r\n<td width=\"73\"><div align=\"center\">\r\n  <input name=\"name\" type=\"text\" id=\"name\" size=\"8\" value=\"";  private final static byte[] _wl_block10Bytes = _getBytes(_wl_block10);  private final static String _wl_block11 = "\">\r\n</div></td>\r\n<td width=\"92\"><div align=\"center\">\r\n  <input name=\"model\" type=\"text\" id=\"model\" size=\"8\" value=\"";  private final static byte[] _wl_block11Bytes = _getBytes(_wl_block11);  private final static String _wl_block12 = "\">\r\n</div></td>\r\n<td width=\"115\"><div align=\"center\">\r\n  <input name=\"price\" type=\"text\" id=\"price\" size=\"8\" value=\"";  private final static byte[] _wl_block12Bytes = _getBytes(_wl_block12);  private final static String _wl_block13 = "\">\r\n</div></td>\r\n<td width=\"115\"><div align=\"center\">\r\n  <input name=\"count1\" type=\"text\" id=\"count1\" size=\"8\" value=\"";  private final static byte[] _wl_block13Bytes = _getBytes(_wl_block13);  private final static String _wl_block14 = "\">\r\n</div></td>\r\n<td width=\"76\"><div align=\"center\">\r\n  <input name=\"zhiFu\" type=\"text\" id=\"zhiFu\" size=\"8\" value=\"";  private final static byte[] _wl_block14Bytes = _getBytes(_wl_block14);  private final static String _wl_block15 = "\">\r\n</div></td>\r\n<td width=\"69\"><div align=\"center\">\r\n  <input name=\"Submit\" type=\"submit\" id=\"Submit\" value=\"修改\">\r\n</div></td>\r\n<td width=\"73\"><input type=\"submit\" name=\"Submit\" value=\"删除\"></td>\r\n<td width=\"133\"><div align=\"center\">\r\n  <input type=\"submit\" name=\"Submit\" value=\"删除添加到销售记录\">\r\n</div></td>\r\n  </tr>\r\n</table>\r\n</form>\r\n<p>&nbsp;</p>\r\n";  private final static byte[] _wl_block15Bytes = _getBytes(_wl_block15);  private final static String _wl_block16 = "\r\n</body>\r\n</html>\r\n";  private final static byte[] _wl_block16Bytes = _getBytes(_wl_block16);  
  
  public void _jspService(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException 
  {  
    
    // declare and set well-known variables:
    javax.servlet.ServletConfig config = getServletConfig();
    javax.servlet.ServletContext application = config.getServletContext();
    javax.servlet.jsp.tagext.Tag _activeTag = null;
    // variables for Tag extension protocol    
    Object page = this;
    javax.servlet.jsp.JspWriter out;
    javax.servlet.jsp.PageContext pageContext =    javax.servlet.jsp.JspFactory.getDefaultFactory().getPageContext(this, request, response, null, true, 8192, true);    
    response.setHeader("Content-Type", "text/html; charset=GBK");    out = pageContext.getOut();    JspWriter _originalOut = out;    
    javax.servlet.http.HttpSession session = request.getSession(true);    
    
    
    try { // error page try block            response.setContentType("text/html; charset=GBK");            _writeText(response, out, _wl_block0, _wl_block0Bytes);      JavaBean.GouWuCheBean gouwu = null; //[ /dingdanguanli.jsp; Line: 2]      gouwu = (JavaBean.GouWuCheBean)pageContext.getAttribute("gouwu"); //[ /dingdanguanli.jsp; Line: 2]      if (gouwu == null) { // begin 'gouwu' instantiation block... //[ /dingdanguanli.jsp; Line: 2]        { // Don't need to synchronize on page scope //[ /dingdanguanli.jsp; Line: 2]          gouwu = (JavaBean.GouWuCheBean)pageContext.getAttribute("gouwu"); //[ /dingdanguanli.jsp; Line: 2]          if (gouwu == null) { // begin 'gouwu' synchronized instantiation block... //[ /dingdanguanli.jsp; Line: 2]            gouwu = new JavaBean.GouWuCheBean(); //[ /dingdanguanli.jsp; Line: 2]            pageContext.setAttribute("gouwu", gouwu); //[ /dingdanguanli.jsp; Line: 2]            _writeText(response, out, _wl_block1, _wl_block1Bytes);          } // end synchronized bean instantiation block... //[ /dingdanguanli.jsp; Line: 3]        } // end synchronized bean scope block... //[ /dingdanguanli.jsp; Line: 3]      } // end bean instantiation block... //[ /dingdanguanli.jsp; Line: 3]      _writeText(response, out, _wl_block2, _wl_block2Bytes);      _writeText(response, out, _wl_block3, _wl_block3Bytes);      _writeText(response, out, _wl_block4, _wl_block4Bytes);      String zhuanhuan; //[ /dingdanguanli.jsp; Line: 13]      //[ /dingdanguanli.jsp; Line: 13]      _writeText(response, out, _wl_block5, _wl_block5Bytes);      Iterator it = gouwu.selectAll().iterator(); //[ /dingdanguanli.jsp; Line: 48]      //[ /dingdanguanli.jsp; Line: 48]      _writeText(response, out, _wl_block6, _wl_block6Bytes);      while(it.hasNext()){GouWuCheInfoVo vo = (GouWuCheInfoVo)it.next(); //[ /dingdanguanli.jsp; Line: 49]        //[ /dingdanguanli.jsp; Line: 49]        _writeText(response, out, _wl_block7, _wl_block7Bytes);        out.print(String.valueOf(vo.getDingDanHao()));  //[ /dingdanguanli.jsp; Line: 54]        _writeText(response, out, _wl_block8, _wl_block8Bytes);        out.print(String.valueOf(vo.getUserCode()));  //[ /dingdanguanli.jsp; Line: 57]        _writeText(response, out, _wl_block9, _wl_block9Bytes);        out.print(String.valueOf(vo.getNumber()));  //[ /dingdanguanli.jsp; Line: 60]        _writeText(response, out, _wl_block10, _wl_block10Bytes);        out.print(String.valueOf(zhuanhuan=new String(vo.getName().getBytes("8859_1"))));  //[ /dingdanguanli.jsp; Line: 63]        _writeText(response, out, _wl_block11, _wl_block11Bytes);        out.print(String.valueOf(vo.getModel()));  //[ /dingdanguanli.jsp; Line: 66]        _writeText(response, out, _wl_block12, _wl_block12Bytes);        out.print(String.valueOf(vo.getPrice()));  //[ /dingdanguanli.jsp; Line: 69]        _writeText(response, out, _wl_block13, _wl_block13Bytes);        out.print(String.valueOf(vo.getCount1()));  //[ /dingdanguanli.jsp; Line: 72]        _writeText(response, out, _wl_block14, _wl_block14Bytes);        out.print(String.valueOf(vo.getZhiFu()));  //[ /dingdanguanli.jsp; Line: 75]        _writeText(response, out, _wl_block15, _wl_block15Bytes);      } //[ /dingdanguanli.jsp; Line: 88]      //[ /dingdanguanli.jsp; Line: 88]      _writeText(response, out, _wl_block16, _wl_block16Bytes);    } catch (Throwable __ee) {      while (out != null && out != _originalOut) out = pageContext.popBody();      ((weblogic.servlet.jsp.PageContextImpl)pageContext).handlePageException((Throwable)__ee);    }        
    //before final close brace...
  }
  
  
}

⌨️ 快捷键说明

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