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

📄 __login.java

📁 一个论坛的实例
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
/* compiled from JSP: /login.jsp
*
* This code was automatically generated at 15:42:53 on 2006-3-15
* 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 com.laoer.bbscs.sys.*; //[ /login.jsp; Line: 6]

// 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 15:42:53 on 2006-3-15
* by weblogic.servlet.jsp.Jsp2Java -- do not edit.
*
* Copyright (c) 2006 by BEA Systems, Inc. All Rights Reserved.
*/
public final class __login
extends
weblogic.servlet.jsp.JspBase
implements weblogic.servlet.jsp.StaleIndicator
{
  
  private static void _releaseTags(javax.servlet.jsp.tagext.Tag t) {    while (t != null) {      javax.servlet.jsp.tagext.Tag tmp = t;      t = t.getParent();      try { tmp.release(); } catch (Exception ignore) {}    }  }      // 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("/login.jsp", 1130594072000L, "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("/login.jsp", 1130594072000L, "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 = "UTF-8";    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\r\n\r\n\r\n\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<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\r\n<title>\r\n";  private final static byte[] _wl_block3Bytes = _getBytes(_wl_block3);  private final static String _wl_block4 = "\r\n</title>\r\n<link href=\"css/css0.css\" rel=\"stylesheet\" type=\"text/css\">\r\n</head>\r\n<body>\r\n<form name=\"loginForm\" method=\"post\" action=\"";  private final static byte[] _wl_block4Bytes = _getBytes(_wl_block4);  private final static String _wl_block5 = "\" target=\"_top\">\r\n<input type=\"hidden\" name=\"action\" value=\"login\">\r\n<input type=\"hidden\" name=\"tourl\" value=\"";  private final static byte[] _wl_block5Bytes = _getBytes(_wl_block5);  private final static String _wl_block6 = "\">\r\n<table width=\"250\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"0\">\r\n  <tr>\r\n    <td colspan=\"2\">\r\n      <div align=\"center\">\r\n        <strong>";  private final static byte[] _wl_block6Bytes = _getBytes(_wl_block6);  private final static String _wl_block7 = "</strong>\r\n      </div>\r\n    </td>\r\n  </tr>\r\n  <tr>\r\n    <td colspan=\"2\"><div align=\"center\">";  private final static byte[] _wl_block7Bytes = _getBytes(_wl_block7);  private final static String _wl_block8 = "</div></td>\r\n  </tr>\r\n  <tr>\r\n    <td width=\"82\">\r\n      <div align=\"right\">";  private final static byte[] _wl_block8Bytes = _getBytes(_wl_block8);  private final static String _wl_block9 = ":</div>\r\n    </td>\r\n    <td width=\"148\">\r\n      <input type=\"text\" name=\"username\" maxlength=\"20\" size=\"15\" value=\"\" class=\"INPUT1\">\r\n    </td>\r\n  </tr>\r\n  <tr>\r\n    <td>\r\n      <div align=\"right\">";  private final static byte[] _wl_block9Bytes = _getBytes(_wl_block9);  private final static String _wl_block10 = ":</div>\r\n    </td>\r\n    <td>\r\n      <input type=\"password\" name=\"passwd\" maxlength=\"20\" size=\"15\" value=\"\" class=\"INPUT1\">\r\n    </td>\r\n  </tr>\r\n  <!--<tr>\r\n    <td>\r\n      <div align=\"right\">";  private final static byte[] _wl_block10Bytes = _getBytes(_wl_block10);  private final static String _wl_block11 = ":</div>\r\n    </td>\r\n    <td>\r\n      <input type=\"text\" name=\"authcode\" maxlength=\"4\" size=\"5\" value=\"\" class=\"INPUT1\">\r\n      <img src=\'authimg\' alt=\"";  private final static byte[] _wl_block11Bytes = _getBytes(_wl_block11);  private final static String _wl_block12 = "\">\r\n    </td>\r\n  </tr>-->\r\n  <tr>\r\n    <td colspan=\"2\">\r\n      <div align=\"center\">\r\n        ";  private final static byte[] _wl_block12Bytes = _getBytes(_wl_block12);  private final static String _wl_block13 = "\r\n        ";  private final static byte[] _wl_block13Bytes = _getBytes(_wl_block13);  private final static String _wl_block14 = "\r\n      </div>\r\n    </td>\r\n  </tr>\r\n</table>\r\n</form>\r\n<div align=\"center\">\r\n  ";  private final static byte[] _wl_block14Bytes = _getBytes(_wl_block14);  private final static String _wl_block15 = "\r\n  ";  private final static byte[] _wl_block15Bytes = _getBytes(_wl_block15);  private final static String _wl_block16 = "\r\n</div>\r\n<p></p>\r\n<table width=\"80%\" border=\"0\" align=\"center\" cellpadding=\"3\" cellspacing=\"1\">\r\n  <tr class=\"S4\">\r\n    <td width=\"40%\"><div align=\"center\"><span class=\"bt FONT1\">";  private final static byte[] _wl_block16Bytes = _getBytes(_wl_block16);  private final static String _wl_block17 = "</span></div></td>\r\n    <td width=\"40%\"><div align=\"center\"><span class=\"bt FONT1\">";  private final static byte[] _wl_block17Bytes = _getBytes(_wl_block17);  private final static String _wl_block18 = "</span></div></td>\r\n  </tr>\r\n  <tr class=\"S2\">\r\n    <td valign=\"top\">\r\n      <p style=\"line-height: 16pt\">\r\n      <span class=\"bt\"><script language=\"JavaScript\" type=\"text/javascript\" src=\"file/include/newpost.js\"></script></span>\r\n      </p>\r\n    </td>\r\n    <td valign=\"top\">\r\n      <p style=\"line-height: 16pt\">\r\n      <span class=\"bt\"><script language=\"JavaScript\" type=\"text/javascript\" src=\"file/include/commend.js\"></script></span>\r\n      </p>\r\n    </td>\r\n  </tr>\r\n</table>\r\n</body>\r\n</html>\r\n";  private final static byte[] _wl_block18Bytes = _getBytes(_wl_block18);  
  
  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    int _int0 = 0, _int1 = 0;    org.apache.struts.taglib.bean.MessageTag _bean_message0 = null;    org.apache.struts.taglib.html.SubmitTag _html_submit0 = null;    org.apache.struts.taglib.html.LinkTag _html_link0 = null;    org.apache.struts.taglib.html.ErrorsTag _html_errors0 = null;    org.apache.struts.taglib.html.ResetTag _html_reset0 = null;    
    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=UTF-8");    out = pageContext.getOut();    JspWriter _originalOut = out;    
    javax.servlet.http.HttpSession session = request.getSession(true);    
    
    
    try { // error page try block            response.setContentType("text/html; charset=UTF-8");            _writeText(response, out, _wl_block0, _wl_block0Bytes);      _writeText(response, out, _wl_block1, _wl_block1Bytes);      com.laoer.bbscs.web.form.LoginForm loginForm = null; //[ /login.jsp; Line: 7]      loginForm = (com.laoer.bbscs.web.form.LoginForm)request.getAttribute("loginForm"); //[ /login.jsp; Line: 7]      if (loginForm == null) { // begin 'loginForm' instantiation block... //[ /login.jsp; Line: 7]        { // Don't need to synchronize on request scope //[ /login.jsp; Line: 7]          loginForm = (com.laoer.bbscs.web.form.LoginForm)request.getAttribute("loginForm"); //[ /login.jsp; Line: 7]          if (loginForm == null) { // begin 'loginForm' synchronized instantiation block... //[ /login.jsp; Line: 7]            loginForm = new com.laoer.bbscs.web.form.LoginForm(); //[ /login.jsp; Line: 7]            request.setAttribute("loginForm", loginForm); //[ /login.jsp; Line: 7]          } // end synchronized bean instantiation block... //[ /login.jsp; Line: 7]        } // end synchronized bean scope block... //[ /login.jsp; Line: 7]      } // end bean instantiation block... //[ /login.jsp; Line: 7]      _writeText(response, out, _wl_block2, _wl_block2Bytes);      //[ /login.jsp; Line: 8]      if (loginForm.getTourl() == null) { //[ /login.jsp; Line: 9]        loginForm.setTourl(SysUtil.getToURL(request,"")); //[ /login.jsp; Line: 10]      } //[ /login.jsp; Line: 11]      _writeText(response, out, _wl_block3, _wl_block3Bytes);

⌨️ 快捷键说明

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