• 大小: 1.06MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-11
  • 语言: Java
  • 标签: 123  

资源简介

新手学习Java web。

资源截图

代码片段和文件信息

package org.apache.jsp.com;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public final class top_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 org.glassfish.jsp.api.ResourceInjector _jspx_resourceInjector;

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

  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=UTF-8“);
      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;
      _jspx_resourceInjector = (org.glassfish.jsp.api.ResourceInjector) application.getAttribute(“com.sun.appserv.jsp.resource.injector“);

      out.write(“\n“);
      out.write(“\n“);
      out.write(“\n“);

    String path = request.getContextPath();
    String basePath = request.getScheme() + “://“
            + request.getServerName() + “:“ + request.getServerPort()
            + path + “/“;

      out.write(‘\n‘);

    String username=(String)session.getAttribute(“user“);

      out.write(“\n“);
      out.write(“\n“);
      out.write(“\n“);
      out.write(“    \n“);
      out.write(“        se href=\““);
      out.print(basePath);
      out.write(“\“>\n“);
      out.write(“        ta http-equiv=\“Content-Type\“ content=\“text/html; charset=UTF-8\“>\n“);
      out.write(“        tle>头部tle>\n“);
      out.write(“    \n“);
      out.write(“    \n“);
      out.write(“        
\n“);
      out.write(“            

USER

\n“);
      out.write(“           \n“);
      out.write(“            yle=‘border-collapse:collapse;table-layout: fixed‘>\n“);
      out.write(“                \n“);
      out.write(“                    “);
 if(username==null){
      out.write(“\n“);
      out.write(“                        登录  注册\n“);
      out.write(“                    “);

                        }else{

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-11-26 20:33  案例4 登录注册\
     目录           0  2018-11-26 20:39  案例4 登录注册\build\
     目录           0  2018-11-26 20:39  案例4 登录注册\build\empty\
     目录           0  2018-11-26 20:39  案例4 登录注册\build\generated\
     目录           0  2018-11-26 20:39  案例4 登录注册\build\generated\classes\
     目录           0  2018-11-26 20:39  案例4 登录注册\build\generated\classes\org\
     目录           0  2018-11-26 20:39  案例4 登录注册\build\generated\classes\org\apache\
     目录           0  2018-11-29 16:53  案例4 登录注册\build\generated\classes\org\apache\jsp\
     目录           0  2018-11-29 16:53  案例4 登录注册\build\generated\classes\org\apache\jsp\com\
     文件        5431  2018-11-29 16:53  案例4 登录注册\build\generated\classes\org\apache\jsp\com\top_jsp.class
     目录           0  2018-11-26 20:46  案例4 登录注册\build\generated\classes\org\apache\jsp\common\
     文件        5549  2018-11-26 20:46  案例4 登录注册\build\generated\classes\org\apache\jsp\common\top_jsp.class
     目录           0  2018-11-29 17:24  案例4 登录注册\build\generated\classes\org\apache\jsp\user\
     文件        5862  2018-11-29 17:07  案例4 登录注册\build\generated\classes\org\apache\jsp\user\login_jsp.class
     文件        6840  2018-11-29 17:10  案例4 登录注册\build\generated\classes\org\apache\jsp\user\register_jsp.class
     文件        5704  2018-11-29 17:25  案例4 登录注册\build\generated\classes\org\apache\jsp\user\show_jsp.class
     文件        4313  2018-11-29 17:26  案例4 登录注册\build\generated\classes\org\apache\jsp\user\welcome_jsp.class
     目录           0  2018-11-26 20:39  案例4 登录注册\build\generated\src\
     目录           0  2018-11-26 20:39  案例4 登录注册\build\generated\src\org\
     目录           0  2018-11-26 20:39  案例4 登录注册\build\generated\src\org\apache\
     目录           0  2018-11-29 16:53  案例4 登录注册\build\generated\src\org\apache\jsp\
     目录           0  2018-11-29 16:53  案例4 登录注册\build\generated\src\org\apache\jsp\com\
     文件         167  2018-11-29 16:53  案例4 登录注册\build\generated\src\org\apache\jsp\com\top_jsp.class.smap
     文件        4183  2018-11-29 16:53  案例4 登录注册\build\generated\src\org\apache\jsp\com\top_jsp.java
     目录           0  2018-11-26 20:46  案例4 登录注册\build\generated\src\org\apache\jsp\common\
     文件         170  2018-11-26 20:46  案例4 登录注册\build\generated\src\org\apache\jsp\common\top_jsp.class.smap
     文件        4306  2018-11-26 20:46  案例4 登录注册\build\generated\src\org\apache\jsp\common\top_jsp.java
     目录           0  2018-11-29 17:24  案例4 登录注册\build\generated\src\org\apache\jsp\user\
     文件         164  2018-11-29 17:07  案例4 登录注册\build\generated\src\org\apache\jsp\user\login_jsp.class.smap
     文件        4497  2018-11-29 17:07  案例4 登录注册\build\generated\src\org\apache\jsp\user\login_jsp.java
     文件         176  2018-11-29 17:10  案例4 登录注册\build\generated\src\org\apache\jsp\user\register_jsp.class.smap
............此处省略71个文件信息

评论

共有 条评论