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

📄 head_005ftop_jsp.java

📁 一、数据库登录名:blog 密码:blog 二、首页应该运行log.jsp页面。其用户名:aa 密码:aaaa
💻 JAVA
字号:
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.ArrayList;
import java.lang.Integer;

public final class head_005ftop_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static java.util.Vector _jspx_dependants;

  public java.util.List getDependants() {
    return _jspx_dependants;
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    JspFactory _jspxFactory = null;
    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html; charset=GBK");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<title>\r\n");
      out.write("head_top\r\n");
      out.write("</title>\r\n");
      out.write("</head>\r\n");

if(session.getAttribute("form")==null){out.print("<script language=javascript >alert('您已经与服务器断开,请重新登录!');window.location.href='log.jsp';</script>");}
ActionForm.ConsumerActionForm  caf=(ActionForm.ConsumerActionForm)session.getAttribute("form");
  OperationDB.operation o=new OperationDB.operation();
ArrayList list=(ArrayList)o.selectHostConsumer("博主");
//页面计数器


      out.write("\r\n");
      out.write("<body bgcolor=\"#ffffff\">\r\n");
      out.write("<!--页面头部分1-->\r\n");
      out.write("<!--页面头部分2-->\r\n");
      out.write("<!--页面头部分3-->\r\n");
      out.write("<table width=\"100\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td><img src=\"myimage/11a.jpg\" width=\"825\" height=\"200\" alt=\"\"></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("<!--页面头部分4-->\r\n");
      out.write("<table width=\"825\"  border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#66CCCC\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td width=\"35\">&nbsp;</td>\r\n");
      out.write("    <td width=\"700\"><table width=\"619\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
for(int i=0;i<list.size();i++){ActionForm.ConsumerActionForm con=(ActionForm.ConsumerActionForm)
list.get(i);
      out.write("\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td  height=\"20\"><span class=\"style2\">博主信息&nbsp;【<a href=\"dealwith.jsp?sign=2\">重新登录</a>】</span></td>\r\n");
      out.write("        <td colspan=\"2\">\r\n");
      out.write("         ");
if(caf.getManageLevel().equals("博主")){
      out.write("\r\n");
      out.write("          <div align=\"right\"><span class=\"style2\">【<a href=\"back_index.jsp\"> 进入后台</a><span class=\"style2\">】</span></div>\r\n");
}
      out.write("\r\n");
      out.write("        </td>\r\n");
      out.write("      </tr>\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td height=\"20\"><span class=\"style3 style2\">姓名:");
      out.print(con.getName());
      out.write("</span></td>\r\n");
      out.write("        <td width=\"212\"><span class=\"style3 style2\">性别:");
      out.print(con.getSex());
      out.write("</span></td>\r\n");
      out.write("        <td width=\"195\"><span class=\"style3 style2\">兴趣:");
      out.print(con.getInterest());
      out.write("</span></td>\r\n");
      out.write("      </tr>\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td height=\"20\"><span class=\"style3 style2\">QQ号码:");
      out.print(con.getQQnumber());
      out.write("</span></td>\r\n");
      out.write("        <td><span class=\"style3 style2\">E-Mail:");
      out.print(con.getE());
      out.write("</span></td>\r\n");
      out.write("        <td><span class=\"style3 style2\">主页:");
      out.print(con.getMainPage());
      out.write("</span></td>\r\n");
      out.write("      </tr>\r\n");
}
      out.write("\r\n");
      out.write("    </table></td>\r\n");
      out.write("    <td width=\"90\">&nbsp;</td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("<!--页面头部分5-->\r\n");
      out.write("<table width=\"825\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#4747C9\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td width=\"104\">&nbsp;</td>\r\n");
      out.write("    <td width=\"579\">\r\n");
      out.write("  <marquee direction=\"left\"  scrollAmount=\"1\" scrollDelay=\"1\" class=\"tdtd\">\r\n");
      out.write("            <span class=\"style4 style1\">欢迎您光临我的博客天空,如果您对我发布的文章有看法,请对该文章进行回复.</span>\r\n");
      out.write("  </marquee>\r\n");
      out.write("    </td>\r\n");
      out.write("    <td width=\"142\">&nbsp;</td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("</body>\r\n");
      out.write("</html>\r\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}

⌨️ 快捷键说明

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