_admin__jsp.java

来自「公司企业网站管理系统中文豪华版」· Java 代码 · 共 206 行 · 第 1/2 页

JAVA
206
字号
/*
 * JSP generated by Resin-3.0.19 (built Mon, 15 May 2006 04:50:47 PDT)
 */

package _jsp._basic._admin;
import javax.servlet.*;
import javax.servlet.jsp.*;
import javax.servlet.http.*;
import java.sql.*;
import mfkvit.login;
import mfkvit.JdbcBean;
import java.util.*;

public class _admin__jsp extends com.caucho.jsp.JavaPage{
  private boolean _caucho_isDead;
  
  public void
  _jspService(javax.servlet.http.HttpServletRequest request,
              javax.servlet.http.HttpServletResponse response)
    throws java.io.IOException, javax.servlet.ServletException
  {
    javax.servlet.http.HttpSession session = request.getSession(true);
    com.caucho.server.webapp.Application _jsp_application = _caucho_getApplication();
    javax.servlet.ServletContext application = _jsp_application;
    com.caucho.jsp.PageContextImpl pageContext = com.caucho.jsp.QJspFactory.allocatePageContext(this, _jsp_application, request, response, null, session, 8192, true, false);
    javax.servlet.jsp.JspWriter out = pageContext.getOut();
    javax.servlet.ServletConfig config = getServletConfig();
    javax.servlet.Servlet page = this;
    response.setContentType("text/html; charset=gb2312");
    request.setCharacterEncoding("GB2312");
    try {
      out.write(_jsp_string0, 0, _jsp_string0.length);
      mfkvit.login login;
      synchronized (session) {
        login = (mfkvit.login) session.getAttribute("login");
        if (login == null) {
          login = new mfkvit.login();
          session.setAttribute("login", login);
          out.write(_jsp_string1, 0, _jsp_string1.length);
        }
      }
      out.write(_jsp_string1, 0, _jsp_string1.length);
      
if(session.isNew()){response.sendRedirect("index.jsp");}
String success=login.getSuccess();
if(success==null){success="";}
if(!(success.equals("ok"))){response.sendRedirect("index.jsp");}

      out.write(_jsp_string2, 0, _jsp_string2.length);
      
  request.setCharacterEncoding("gb2312");
  String x = request.getParameter("id");
  	if(x!=null){ 	
 try{
      JdbcBean dbutil = new JdbcBean();
      String condition="select * from Madmin where id="+x;
      int i = dbutil.execQueryName(condition);
      if(i>0){	
	    HashMap hm  = (HashMap)(dbutil.getRS().get(0));
    
      out.write(_jsp_string3, 0, _jsp_string3.length);
      out.print(((String)hm.get("AdminName")));
      out.write(_jsp_string4, 0, _jsp_string4.length);
      out.print(((String)hm.get("RealName")));
      out.write(_jsp_string5, 0, _jsp_string5.length);
      out.print((x));
      out.write(_jsp_string6, 0, _jsp_string6.length);
       } 
      out.write(_jsp_string7, 0, _jsp_string7.length);
      } catch (Exception ex) {ex.printStackTrace();}
		  }else{
		  
		   
      out.write(_jsp_string8, 0, _jsp_string8.length);
      }
      out.write(_jsp_string9, 0, _jsp_string9.length);
      

     request.setCharacterEncoding("gb2312");
     int i=-1;
    try{
      JdbcBean dbutil = new JdbcBean();
      String condition="select * from Madmin";  
	int rowcount = dbutil.execQueryName(condition);
    ArrayList al = dbutil.getRS();
    for(int j=0;j<rowcount;j++){
      HashMap colValue = (HashMap)al.get(j);  
    
      out.write(_jsp_string10, 0, _jsp_string10.length);
        String id = (String)colValue.get("ID");
       
      out.write(_jsp_string11, 0, _jsp_string11.length);
      out.print((id));
      out.write(_jsp_string12, 0, _jsp_string12.length);
      out.print(((String)colValue.get("AdminName")));
      out.write(_jsp_string13, 0, _jsp_string13.length);
      out.print(((String)colValue.get("RealName")));
      out.write(_jsp_string14, 0, _jsp_string14.length);
      out.print((id));
      out.write(_jsp_string15, 0, _jsp_string15.length);
       } 
      out.write(_jsp_string16, 0, _jsp_string16.length);
      } catch (Exception ex) {ex.printStackTrace();} 

⌨️ 快捷键说明

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