📄 __modifycustomer.java
字号:
/* compiled from JSP: /modifycustomer.jsp
*
* This code was automatically generated at 11:51:53 on 2005-4-22
* 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 javax.naming.*; //[ /modifycustomer.jsp; Line: 2]import java.util.Properties; //[ /modifycustomer.jsp; Line: 2]import javax.rmi.PortableRemoteObject; //[ /modifycustomer.jsp; Line: 2]import testejb.*; //[ /modifycustomer.jsp; Line: 2]
// 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 11:51:54 on 2005-4-22
* by weblogic.servlet.jsp.Jsp2Java -- do not edit.
*
* Copyright (c) 2005 by BEA Systems, Inc. All Rights Reserved.
*/
public final class __modifycustomer
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("/modifycustomer.jsp", 1113876776923L, "8.1.2.0", "GMT+08:00")) return true; return false; } public static boolean _staticIsStale(weblogic.servlet.jsp.StaleChecker sci) { java.io.File f = null; long lastModWhenBuilt = 0L; if (sci.isResourceStale("/modifycustomer.jsp", 1113876776923L, "8.1.2.0", "GMT+08:00")) 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 = "GB2312"; 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\r\n<html>\r\n<head>\r\n<title>\r\nmodifycustomer\r\n</title>\r\n<style type=\"text/css\">\r\n<!--\r\ntable {\r\n\tfont-family: \"宋体\";\r\n\tfont-size: 12px;\r\n}\r\n-->\r\n</style>\r\n</head>\r\n\r\n<body>\r\n<center>\r\n<form name=\"form1\" method=\"post\" action=\"modifycustomer\">\r\n <table width=\"36%\" border=\"1\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#0099FF\" style=\"border-collapse:collapse\">\r\n"; private final static byte[] _wl_block1Bytes = _getBytes(_wl_block1); private final static String _wl_block2 = "\r\n <tr>\r\n <td width=\"26%\"><div align=\"center\">名 称:</div></td>\r\n <td width=\"74%\"><div align=\"center\">\r\n <input name=\"name\" type=\"text\" id=\"name\" value=\""; private final static byte[] _wl_block2Bytes = _getBytes(_wl_block2); private final static String _wl_block3 = "\">\r\n </div></td>\r\n </tr>\r\n <tr>\r\n <td><div align=\"center\">地 址:</div></td>\r\n <td><div align=\"center\">\r\n <input name=\"addr\" type=\"text\" id=\"addr\" value=\""; private final static byte[] _wl_block3Bytes = _getBytes(_wl_block3); private final static String _wl_block4 = "\">\r\n </div></td>\r\n </tr>\r\n <tr>\r\n <td><div align=\"center\">联系人:</div></td>\r\n <td><div align=\"center\">\r\n <input name=\"contact\" type=\"text\" id=\"contact\" value=\""; private final static byte[] _wl_block4Bytes = _getBytes(_wl_block4); private final static String _wl_block5 = "\">\r\n </div></td>\r\n </tr>\r\n <tr>\r\n <td><div align=\"center\">电 话:</div></td>\r\n <td><div align=\"center\">\r\n <input name=\"phone\" type=\"text\" id=\"phone\" value=\""; private final static byte[] _wl_block5Bytes = _getBytes(_wl_block5); private final static String _wl_block6 = "\">\r\n </div></td>\r\n </tr>\r\n <tr>\r\n <td><div align=\"center\">E-MAIL:</div></td>\r\n <td><div align=\"center\">\r\n <input name=\"email\" type=\"text\" id=\"email\" value=\""; private final static byte[] _wl_block6Bytes = _getBytes(_wl_block6); private final static String _wl_block7 = "\">\r\n </div></td>\r\n </tr>\r\n <tr>\r\n <td><div align=\"center\">业务代表:</div></td>\r\n <td><div align=\"center\">\r\n <select name=\"represent\" id=\"represent\">\r\n "; private final static byte[] _wl_block7Bytes = _getBytes(_wl_block7); private final static String _wl_block8 = "\r\n <option value=\""; private final static byte[] _wl_block8Bytes = _getBytes(_wl_block8); private final static String _wl_block9 = "\" selected>"; private final static byte[] _wl_block9Bytes = _getBytes(_wl_block9); private final static String _wl_block10 = "</option>\r\n "; private final static byte[] _wl_block10Bytes = _getBytes(_wl_block10); private final static String _wl_block11 = "\r\n <option value=\""; private final static byte[] _wl_block11Bytes = _getBytes(_wl_block11); private final static String _wl_block12 = "\">"; private final static byte[] _wl_block12Bytes = _getBytes(_wl_block12); private final static String _wl_block13 = "</option>\r\n\r\n "; private final static byte[] _wl_block13Bytes = _getBytes(_wl_block13); private final static String _wl_block14 = "\r\n </select>\r\n </div></td>\r\n </tr>\r\n <tr>\r\n <td colspan=\"2\"><div align=\"center\">\r\n <input type=\"reset\" name=\"Submit\" value=\"重置\">\r\n \r\n <input type=\"submit\" name=\"Submit2\" value=\"提交\">\r\n </div></td>\r\n </tr>\r\n"; private final static byte[] _wl_block14Bytes = _getBytes(_wl_block14); private final static String _wl_block15 = "\r\n </table>\r\n</form>\r\n</center>\r\n</body>\r\n</html>\r\n"; private final static byte[] _wl_block15Bytes = _getBytes(_wl_block15);
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=gb2312"); out = pageContext.getOut(); JspWriter _originalOut = out;
javax.servlet.http.HttpSession session = request.getSession(true);
try { // error page try block response.setContentType("text/html; charset=gb2312"); _writeText(response, out, _wl_block0, _wl_block0Bytes); _writeText(response, out, _wl_block1, _wl_block1Bytes); //[ /modifycustomer.jsp; Line: 23] try{ //[ /modifycustomer.jsp; Line: 24] String customerid=request.getParameter("customerid"); //[ /modifycustomer.jsp; Line: 25] session.setAttribute("selectcustomerid",customerid); //[ /modifycustomer.jsp; Line: 26] baseclass basebean=new baseclass(); //[ /modifycustomer.jsp; Line: 27] Context context=basebean.getContext(); //[ /modifycustomer.jsp; Line: 28] Object ref = context.lookup("EmployeeCustomerBean"); //[ /modifycustomer.jsp; Line: 29] EmployeeCustomerHome employeeCustomerHome = (EmployeeCustomerHome) PortableRemoteObject.narrow(ref, EmployeeCustomerHome.class); //[ /modifycustomer.jsp; Line: 30] EmployeeCustomer employeeCustomer=employeeCustomerHome.create(); //[ /modifycustomer.jsp; Line: 31] customer selectcustomer=employeeCustomer.displaysingle(customerid); //[ /modifycustomer.jsp; Line: 32] String representid=selectcustomer.getRepresent_id(); //[ /modifycustomer.jsp; Line: 33] ref = context.lookup("EmployeePermBean"); //[ /modifycustomer.jsp; Line: 34] EmployeePermHome employeepermHome = (EmployeePermHome) PortableRemoteObject.narrow(ref, EmployeePermHome.class); //[ /modifycustomer.jsp; Line: 35] EmployeePerm employeeperm=employeepermHome.create(); //[ /modifycustomer.jsp; Line: 36] Vector allemployee=employeeperm.displayemployee(); //[ /modifycustomer.jsp; Line: 37] //[ /modifycustomer.jsp; Line: 38] _writeText(response, out, _wl_block2, _wl_block2Bytes); out.print(String.valueOf(selectcustomer.getName())); //[ /modifycustomer.jsp; Line: 43] _writeText(response, out, _wl_block3, _wl_block3Bytes); out.print(String.valueOf(selectcustomer.getAddr())); //[ /modifycustomer.jsp; Line: 49] _writeText(response, out, _wl_block4, _wl_block4Bytes); out.print(String.valueOf(selectcustomer.getContact())); //[ /modifycustomer.jsp; Line: 55] _writeText(response, out, _wl_block5, _wl_block5Bytes); out.print(String.valueOf(selectcustomer.getPhone())); //[ /modifycustomer.jsp; Line: 61] _writeText(response, out, _wl_block6, _wl_block6Bytes); out.print(String.valueOf(selectcustomer.getEmail())); //[ /modifycustomer.jsp; Line: 67] _writeText(response, out, _wl_block7, _wl_block7Bytes); for(int i=0;i<allemployee.size();i++) //[ /modifycustomer.jsp; Line: 74] { //[ /modifycustomer.jsp; Line: 75] myemployee allmyemployee=(myemployee)allemployee.elementAt(i); //[ /modifycustomer.jsp; Line: 76] if(allmyemployee.getId().equals(representid)) //[ /modifycustomer.jsp; Line: 77] { //[ /modifycustomer.jsp; Line: 78] //[ /modifycustomer.jsp; Line: 79] //[ /modifycustomer.jsp; Line: 79] _writeText(response, out, _wl_block8, _wl_block8Bytes); out.print(String.valueOf(allmyemployee.getId())); //[ /modifycustomer.jsp; Line: 80] _writeText(response, out, _wl_block9, _wl_block9Bytes); out.print(String.valueOf(allmyemployee.getName())); //[ /modifycustomer.jsp; Line: 80] _writeText(response, out, _wl_block10, _wl_block10Bytes); } //[ /modifycustomer.jsp; Line: 81] else //[ /modifycustomer.jsp; Line: 82] { //[ /modifycustomer.jsp; Line: 83] //[ /modifycustomer.jsp; Line: 83] _writeText(response, out, _wl_block11, _wl_block11Bytes); out.print(String.valueOf(allmyemployee.getId())); //[ /modifycustomer.jsp; Line: 84] _writeText(response, out, _wl_block12, _wl_block12Bytes); out.print(String.valueOf(allmyemployee.getName())); //[ /modifycustomer.jsp; Line: 84] _writeText(response, out, _wl_block13, _wl_block13Bytes); } //[ /modifycustomer.jsp; Line: 86] } //[ /modifycustomer.jsp; Line: 87] //[ /modifycustomer.jsp; Line: 87] _writeText(response, out, _wl_block14, _wl_block14Bytes); } //[ /modifycustomer.jsp; Line: 98] catch(Exception e) //[ /modifycustomer.jsp; Line: 99] {} //[ /modifycustomer.jsp; Line: 100] //[ /modifycustomer.jsp; Line: 100] _writeText(response, out, _wl_block15, _wl_block15Bytes); } 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 + -