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

📄 actionpage_jsp.java

📁 本源码主要从数据库的开发过程出发
💻 JAVA
字号:
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;
import Source.userInf;

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

  private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();

  private static java.util.List _jspx_dependants;

  private javax.el.ExpressionFactory _el_expressionfactory;
  private org.apache.AnnotationProcessor _jsp_annotationprocessor;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
    _jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
  }

  public void _jspDestroy() {
  }

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

    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 {
      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("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n");
      out.write("   \"http://www.w3.org/TR/html4/loose.dtd\">\n");
      Source.userInf userinf = null;
      synchronized (session) {
        userinf = (Source.userInf) _jspx_page_context.getAttribute("userinf", PageContext.SESSION_SCOPE);
        if (userinf == null){
          userinf = new Source.userInf();
          _jspx_page_context.setAttribute("userinf", userinf, PageContext.SESSION_SCOPE);
        }
      }
      out.write('\n');
String welStr="你还没有登录";;if(session.getAttribute("userInf")==null){    return;    }userinf=(userInf)session.getAttribute("userInf");String userID=userinf.getUserID();String title=userinf.getTitle();int position=userinf.getPosition();welStr="你的学号是 "+userID;
      out.write("\n");
      out.write("<html>\n");
      out.write("<head>\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=GBK\" />\n");
      out.write("<title>Action Page</title>\n");
      out.write("<style type=\"text/css\">\n");
      out.write("<!--\n");
      out.write("#main {\n");
      out.write("\tbackground-color: #CCCCCC;\n");
      out.write("\twidth: 750px;\n");
      out.write("\tmargin-right: auto;\n");
      out.write("\tmargin-left: auto;\n");
      out.write("\tpadding-bottom: 30px;\n");
      out.write("\tpadding-top: 30px;\n");
      out.write("}\n");
      out.write("#main #title {\n");
      out.write("\tbackground-position: center;\n");
      out.write("\tbackground-color: #FFFFFF;\n");
      out.write("\twidth: 600px;\n");
      out.write("\tmargin-right: auto;\n");
      out.write("\tmargin-left: auto;\n");
      out.write("\tvertical-align: text-top;\n");
      out.write("\ttext-align: center;\n");
      out.write("\tpadding-top: 20px;\n");
      out.write("\tpadding-bottom: 20px;\n");
      out.write("}\n");
      out.write(".STYLE3 {\n");
      out.write("\twidth: 600px;\n");
      out.write("\tbackground-color: #666666;\n");
      out.write("\tmargin-right: auto;\n");
      out.write("\tmargin-left: auto;\n");
      out.write("\tfont-size: xx-large;\n");
      out.write("\tfont-weight: bold;\n");
      out.write("\tcolor: #FFFFFF;\n");
      out.write("}\n");
      out.write("-->\n");
      out.write("</style>\n");
      out.write("</head>\n");
      out.write("\n");
      out.write("<body>\n");
      out.write("<div id=\"main\">\n");
      out.write("  <div class=\"STYLE3\" id=\"content\">Action Page</div>\n");
      out.write("  <div id=\"title\">");
      out.print(welStr);
      out.write("\n");
      out.write("    <table width=\"200\" border=\"1\" align=\"center\">\n");
      out.write("      <tr>\n");
      out.write("        <td>1</td>\n");
      out.write("        <td>2</td>\n");
      out.write("      </tr>\n");
      out.write("      <tr>\n");
      out.write("        <td>3</td>\n");
      out.write("        <td>4</td>\n");
      out.write("      </tr>\n");
      out.write("      <tr>\n");
      out.write("        <td>5</td>\n");
      out.write("        <td>6</td>\n");
      out.write("      </tr>\n");
      out.write("      <tr>\n");
      out.write("        <td>7</td>\n");
      out.write("        <td>8</td>\n");
      out.write("      </tr>\n");
      out.write("    </table>\n");
      out.write("  </div>\n");
      out.write("</div>\n");
      out.write("</body>\n");
      out.write("</html>");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try { out.clearBuffer(); } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}

⌨️ 快捷键说明

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