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

📄 a_005flayout_jsp.java

📁 应用泛型以及反射编写的单表操作框架
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import mrgf.hibernate.*;

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

  private static java.util.Vector _jspx_dependants;

  static {
    _jspx_dependants = new java.util.Vector(4);
    _jspx_dependants.add("/WEB-INF/struts-bean.tld");
    _jspx_dependants.add("/WEB-INF/struts-html.tld");
    _jspx_dependants.add("/WEB-INF/struts-logic.tld");
    _jspx_dependants.add("/WEB-INF/struts-tiles.tld");
  }

  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_tiles_insert_attribute_nobody;

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

  public void _jspInit() {
    _jspx_tagPool_tiles_insert_attribute_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
  }

  public void _jspDestroy() {
    _jspx_tagPool_tiles_insert_attribute_nobody.release();
  }

  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=gb2312");
      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("\r\n");
      out.write("\r\n");
      mrgf.other.Hibernate hn = null;
      synchronized (request) {
        hn = (mrgf.other.Hibernate) _jspx_page_context.getAttribute("hn", PageContext.REQUEST_SCOPE);
        if (hn == null){
          hn = new mrgf.other.Hibernate();
          _jspx_page_context.setAttribute("hn", hn, PageContext.REQUEST_SCOPE);
        }
      }
      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("<link rel=\"stylesheet\" href=\"css/style.css\">\r\n");
      out.write("<style type=\"text/css\">\r\n");
      out.write("<!--\r\n");
      out.write(".style1 {color: #CC33FF}\r\n");
      out.write(".style2 {color: #000000}\r\n");
      out.write("-->\r\n");
      out.write("</style>\r\n");
      out.write("<head>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
      out.write("<title>\r\n");
      out.write("index\r\n");
      out.write("</title>\r\n");
      out.write("</head>\r\n");
      out.write("<body bgcolor=\"#ffffff\" topmargin=\"0\">\r\n");
      out.write("  <script language=\"javascript\" type=\"\">\r\n");
      out.write("  <!--\r\n");
      out.write("  function checkEmptySearch(formName){\r\n");
      out.write("    for(i=0;i<formName.length;i++){\r\n");
      out.write("      if(formName.elements[i].value==\"\"){\r\n");
      out.write("        alert(\"请认真填写商品信息!!!\");\r\n");
      out.write("        return false;\r\n");
      out.write("      }\r\n");
      out.write("    }\r\n");
      out.write("  }\r\n");
      out.write("  function checkEmptyLand(formName){\r\n");
      out.write("    for(i=0;i<formName.length;i++){\r\n");
      out.write("      if(formName.elements[i].value==\"\"){\r\n");
      out.write("        alert(\"请认真填写登录信息!!!\");\r\n");
      out.write("        return false;\r\n");
      out.write("      }\r\n");
      out.write("    }\r\n");
      out.write("  }\r\n");
      out.write("  function controlAlign(){\r\n");
      out.write("    width=screen.width;\r\n");
      out.write("    height=screen.height;\r\n");
      out.write("    var hdc=window.open('findPassword.do','','width=400,height=200');\r\n");
      out.write("    hdc.moveTo((width-400)/2,(height-200)/2);\r\n");
      out.write("  }\r\n");
      out.write("  function controlLandAlign(){\r\n");
      out.write("    width=screen.width;\r\n");
      out.write("    height=screen.height;\r\n");
      out.write("    var hdc=window.open('managerLand.do','','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=600,height=400');\r\n");
      out.write("    hdc.moveTo((width-600)/2,(height-400)/2);\r\n");
      out.write("  }\r\n");
      out.write("  function controlAfficheAlign(id){\r\n");
      out.write("    width=screen.width;\r\n");
      out.write("    height=screen.height;\r\n");
      out.write("    var hdc=window.open(\"seeAffiche.do?afficheId=\"+id,\"\",\"scrollbars=yes,width=600,height=400\");\r\n");
      out.write("    hdc.moveTo((width-600)/2,(height-400)/2);\r\n");
      out.write("  }\r\n");
      out.write("  //-->\r\n");
      out.write("  </script>\r\n");
      out.write("<table width=\"983\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td width=\"113\" rowspan=\"5\">&nbsp;</td>\r\n");
      out.write("    <td colspan=\"2\"><img src=\"image/layout/top.jpg\" width=\"757\" height=\"59\"></td>\r\n");
      out.write("    <td width=\"43\" rowspan=\"4\"><img src=\"image/layout/rightLine.jpg\" width=\"43\" height=\"839\"></td>\r\n");
      out.write("    <td width=\"70\" rowspan=\"5\">&nbsp;</td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td colspan=\"2\" height=\"42\" background=\"image/layout/topTwo.jpg\"><table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("      <tr align=\"center\">\r\n");
      out.write("        <td>&nbsp;&nbsp;<a href=\"index.do\">首页</a></td>\r\n");
      out.write("        <td><a href=\"taxis.do\">销售排行</a></td>\r\n");
      out.write("        <td><a href=\"new_merchandise.do\">新品上架</a></td>\r\n");
      out.write("        <td><a href=\"special_offer.do\">特价商品</a></td>\r\n");
      out.write("        <td><a href=\"see_order_for_goods.do\">查看订单</a></td>\r\n");
      out.write("        <td><a href=\"shopping_cart.do\">购&nbsp;物&nbsp;车</a></td>\r\n");
      out.write("        <td><a href=\"update_data.do\">修改资料</a> </td>\r\n");
      out.write("        <td><a href=\"#\" onclick=\"this.style.behavior='url(#default#homepage)';this.sethomepage('http://www.mingrisoft.com')\" >设为首页</a></td>\r\n");
      out.write("      </tr>\r\n");
      out.write("    </table></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("\r\n");
      out.write("  <form action=\"searchMerchandise.do\" name=\"search\" onsubmit=\"return checkEmptySearch(search)\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td colspan=\"2\" height=\"31\" background=\"image/layout/topThree.jpg\"><table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>\r\n");
      out.write("        ");

        mrgf.other.SpecialMethod sm=new mrgf.other.SpecialMethod();
        String username=(String)session.getAttribute("username");
        String land="not";
        if(username==null){
          username="欢迎您登录本站,今天是 "+sm.getDateWithString()+"!!!";
        }else{
          username=username+":您好,今天是 "+sm.getDateWithString()+"!!!";
          land="yes";
        }
        
      out.write("\r\n");
      out.write("        <td><span class=\"word_deepgrey\">");
      out.print(username );
      out.write("</span></td>\r\n");
      out.write("        <td><span class=\"word_deepgrey\">搜索商品名称:</span><input type=\"text\" name=\"searchMerchandiseName\" style=\"color:purple\"></td>\r\n");
      out.write("        <td><input type=\"image\" name=\"search\" src=\"image/layout/button.gif\"></td>\r\n");
      out.write("      </tr>\r\n");
      out.write("    </table></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  </form>\r\n");
      out.write("\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td><table width=\"194\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td height=\"191\" background=\"image/layout/land.jpg\"><table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("          <tr height=\"20\">\r\n");
      out.write("            <td width=\"12%\"></td>\r\n");
      out.write("            <td width=\"32%\"></td>\r\n");
      out.write("            <td width=\"56%\"></td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          <tr height=\"20\" align=\"center\">\r\n");
      out.write("          ");

          String landClueOn="";
          if(request.getAttribute("landClueOn")!=null){
            landClueOn=request.getAttribute("landClueOn").toString();
          }
          
      out.write("\r\n");
      out.write("            <td colspan=\"3\"><font color=\"red\">");
      out.print(landClueOn );
      out.write("</font></td>\r\n");
      out.write("          </tr>\r\n");
      out.write("\r\n");
      out.write("  <form action=\"land.do\" method=\"POST\" name=\"land\" onsubmit=\"return checkEmptyLand(land)\">\r\n");
      out.write("          <tr>\r\n");
      out.write("            <td>&nbsp;</td>\r\n");
      out.write("            <td colspan=\"2\">名称:<input type=\"text\" ");
if(land.equals("yes")){ 
      out.write("readonly=\"readonly\"");
} 
      out.write(" name=\"username\" size=\"16\" style=\"color:purple\"></td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          <tr>\r\n");
      out.write("            <td>&nbsp;</td>\r\n");
      out.write("            <td colspan=\"2\">密码:<input type=\"password\" ");
if(land.equals("yes")){ 
      out.write("readonly=\"readonly\"");
} 
      out.write(" name=\"password\" size=\"16\" style=\"color:purple\"></td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          <tr>\r\n");
      out.write("            <td colspan=\"3\"><!--记录用户请求登录时所在的页--><input type=\"hidden\" name=\"pageInLand\" value=\"");
      out.print(request.getServletPath() );
      out.write("\" /></td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          <tr>\r\n");
      out.write("            <td>&nbsp;</td>\r\n");
      out.write("            ");

            if(land.equals("yes")){
            
      out.write("\r\n");
      out.write("            <td valign=\"bottom\"><a href=\"exitLand.do\" class=\"style2\">退出登录</a></td>\r\n");
      out.write("            ");

            }else{
            
      out.write("\r\n");
      out.write("            <td>&nbsp;</td>\r\n");
      out.write("            ");

            }
            
      out.write("\r\n");
      out.write("            <td><input type=\"reset\" name=\"Submit\" value=\"重置\">&nbsp;\r\n");
      out.write("\t\t\t<input type=\"submit\" name=\"Submit2\" value=\"登录\"></td>\r\n");
      out.write("          </tr>\r\n");
      out.write("  </form>\r\n");
      out.write("\r\n");
      out.write("          <tr>\r\n");
      out.write("            <td colspan=\"3\">&nbsp;</td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          ");

          if(!land.equals("yes")){
          
      out.write("\r\n");
      out.write("          <tr align=\"center\">\r\n");
      out.write("            <td  colspan=\"3\"><a href=\"login.do\" class=\"style2\">我要注册</a>&nbsp;&nbsp;\r\n");
      out.write("\t\t\t<a href=\"#\" class=\"style2\" onClick=\"controlAlign()\">找回密码</a></td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          ");

          }else{
          
      out.write("\r\n");
      out.write("          <tr align=\"center\">\r\n");
      out.write("            <td  colspan=\"3\">我要注册&nbsp;&nbsp;找回密码</td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          ");

          }
          

⌨️ 快捷键说明

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