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

📄 __employee.java

📁 jbuilder9+weblogic8+oracle9开发的客户管理系统。服务器端采用EJB技术。可以对公司雇员和客户进行管理。
💻 JAVA
字号:
/* compiled from JSP: /employee.jsp
*
* This code was automatically generated at 11:51:20 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.*; //[ /employee.jsp; Line: 2]import java.util.Properties; //[ /employee.jsp; Line: 2]import javax.rmi.PortableRemoteObject; //[ /employee.jsp; Line: 2]import testejb.*; //[ /employee.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:21 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 __employee
extends
weblogic.servlet.jsp.JspBase
implements weblogic.servlet.jsp.StaleIndicator
{
  
  //[ /employee.jsp; Line: 19]  myemployee Myemployee=null; //[ /employee.jsp; Line: 20]  //[ /employee.jsp; Line: 21]  // 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("/employee.jsp", 1113397222371L, "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("/employee.jsp", 1113397222371L, "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\n员工资料\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<body>\r\n";  private final static byte[] _wl_block1Bytes = _getBytes(_wl_block1);  private final static String _wl_block2 = "\r\n\r\n";  private final static byte[] _wl_block2Bytes = _getBytes(_wl_block2);  private final static String _wl_block3 = "\r\n<center>\r\n<form action=\"updateemployee\" method=\"post\" name=\"form1\" style=\"border-collapse:collapse \">\r\n  <table width=\"29%\"  border=\"1\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#0099FF\">\r\n    <tr>\r\n      <td width=\"24%\"><div align=\"center\">姓 &nbsp;名:</div></td>\r\n      <td width=\"76%\"><div align=\"center\">\r\n        <input name=\"name\" type=\"text\" id=\"name\" 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\">登陆ID:</div></td>\r\n      <td><div align=\"center\">\r\n        <input name=\"login\" type=\"text\" id=\"login\" 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\">密 &nbsp;码:</div></td>\r\n      <td><div align=\"center\">\r\n        <input name=\"password\" type=\"text\" id=\"password\" 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 colspan=\"2\"><div align=\"center\">\r\n          <input type=\"submit\" name=\"Submit\" value=\"更改\">\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\r\n<input type=\"reset\" name=\"Submit2\" value=\"重置\">\r\n      </div></td>\r\n      </tr>\r\n  </table>\r\n</form>\r\n</center>\r\n</body>\r\n</html>\r\n";  private final static byte[] _wl_block6Bytes = _getBytes(_wl_block6);  
  
  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);      _writeText(response, out, _wl_block2, _wl_block2Bytes);      //[ /employee.jsp; Line: 23]      try{ //[ /employee.jsp; Line: 24]        String id=session.getAttribute("id").toString(); //[ /employee.jsp; Line: 25]        baseclass basebean=new baseclass(); //[ /employee.jsp; Line: 26]        Context context=basebean.getContext(); //[ /employee.jsp; Line: 27]        Object ref = context.lookup("EmployeePermBean"); //[ /employee.jsp; Line: 28]        EmployeePermHome employeePermHome = (EmployeePermHome) PortableRemoteObject.narrow(ref, EmployeePermHome.class); //[ /employee.jsp; Line: 29]        EmployeePerm  employeePerm=employeePermHome.create(); //[ /employee.jsp; Line: 30]        Myemployee=employeePerm.displaysingle(id); //[ /employee.jsp; Line: 31]      } //[ /employee.jsp; Line: 32]      catch(Exception e) //[ /employee.jsp; Line: 33]      {} //[ /employee.jsp; Line: 34]      _writeText(response, out, _wl_block3, _wl_block3Bytes);      out.print(String.valueOf(Myemployee.getName()));  //[ /employee.jsp; Line: 42]      _writeText(response, out, _wl_block4, _wl_block4Bytes);      out.print(String.valueOf(Myemployee.getLogin()));  //[ /employee.jsp; Line: 48]      _writeText(response, out, _wl_block5, _wl_block5Bytes);      out.print(String.valueOf(Myemployee.getPasswd()));  //[ /employee.jsp; Line: 54]      _writeText(response, out, _wl_block6, _wl_block6Bytes);    } 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 + -