_friend__jsp.java

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

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

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

public class _friend__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 w=request.getParameter("w");
					if(w!=null){
   try{ JdbcBean dbutil = new JdbcBean();
	int rowcount = dbutil.execQueryName("select * from friend where id="+w);
    ArrayList al = dbutil.getRS();
    for(int i=0;i<rowcount;i++){
      HashMap colValue1 = (HashMap)al.get(i);  
 
      out.write(_jsp_string3, 0, _jsp_string3.length);
      out.print(((String)colValue1.get("Friendimg")));
      out.write(_jsp_string4, 0, _jsp_string4.length);
      out.print(((String)colValue1.get("www_name")));
      out.write(_jsp_string5, 0, _jsp_string5.length);
       String x=(String)colValue1.get("fs");
      out.write(_jsp_string6, 0, _jsp_string6.length);
      out.print(((String)colValue1.get("www_link")));
      out.write(_jsp_string7, 0, _jsp_string7.length);
      out.print(((String)colValue1.get("www_note")));
      out.write(_jsp_string8, 0, _jsp_string8.length);
      out.print((w));
      out.write(_jsp_string9, 0, _jsp_string9.length);
       } 
      out.write(_jsp_string10, 0, _jsp_string10.length);
      } catch (Exception ex) {ex.printStackTrace();}
      }else{
      out.write(_jsp_string11, 0, _jsp_string11.length);
      if(session.getAttribute("Friendimg")==null){
      out.write(_jsp_string12, 0, _jsp_string12.length);
      }else{
      out.write(_jsp_string13, 0, _jsp_string13.length);
      out.print(("../ShangChuangImg/"+session.getAttribute("Friendimg")));
      out.write(_jsp_string14, 0, _jsp_string14.length);
      out.print((session.getAttribute("Friendimg")));
      out.write(_jsp_string15, 0, _jsp_string15.length);
      out.print((session.getAttribute("Friendimg")));
      out.write(_jsp_string16, 0, _jsp_string16.length);
      }
      out.write(_jsp_string17, 0, _jsp_string17.length);
      session.setAttribute("Friendimg",null);}
      out.write(_jsp_string18, 0, _jsp_string18.length);
      
  request.setCharacterEncoding("gb2312");
    try{
      JdbcBean dbutil = new JdbcBean();
      String condition="select * from friend";
	int rowcount = dbutil.execQueryName(condition);
    ArrayList al = dbutil.getRS();
    for(int i=0;i<rowcount;i++){
     HashMap colValue = (HashMap)al.get(i);  
    
      out.write(_jsp_string19, 0, _jsp_string19.length);
      out.print((i+2));
      out.write(_jsp_string20, 0, _jsp_string20.length);
      out.print(((String)colValue.get("fs")));
      out.write(_jsp_string21, 0, _jsp_string21.length);
      out.print(((String)colValue.get("www_name")));
      out.write(_jsp_string22, 0, _jsp_string22.length);
      out.print(((String)colValue.get("www_link")));
      out.write(_jsp_string23, 0, _jsp_string23.length);
      out.print(((String)colValue.get("Friendimg")));
      out.write(_jsp_string24, 0, _jsp_string24.length);
      out.print(((String)colValue.get("www_time")));
      out.write(_jsp_string25, 0, _jsp_string25.length);
      out.print(((String)colValue.get("id")));
      out.write(_jsp_string26, 0, _jsp_string26.length);
      out.print(((String)colValue.get("id")));
      out.write(_jsp_string27, 0, _jsp_string27.length);
       } 
      out.write(_jsp_string10, 0, _jsp_string10.length);
      } catch (Exception ex) {ex.printStackTrace();}
      out.write(_jsp_string28, 0, _jsp_string28.length);
    } catch (java.lang.Throwable _jsp_e) {

⌨️ 快捷键说明

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