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

📄 jsp2_jsp.java

📁 新闻管理系统
💻 JAVA
字号:
package org.apache.jsp;

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

public final class jsp2_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("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<title>插入表格</title>\r\n");
      out.write("<meta http-equiv=\"Pragma\" content=\"no-cache\">\r\n");
      out.write("<meta http-equiv=\"Window-target\" content=\"_top\">\r\n");
      out.write("<meta http-equiv=\"Content-Language\" content=\"zh-cn\">\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
      out.write("<style type=\"text/css\">\r\n");
      out.write("body, a, table, div, span, td, th, input, select{font:9pt;font-family: \"宋体\", Verdana, Arial, Helvetica, sans-serif;}\r\n");
      out.write(".text{border:1px solid #aaaaaa;}\r\n");
      out.write(".button{height:18;border:1px ridge #aaaaaa;background-color:aaaaaa;color:ffffff}\r\n");
      out.write("\r\n");
      out.write("</style>\r\n");
      out.write("<script language=\"JavaScript\" type=\"\">\r\n");
      out.write("function checkchange()\r\n");
      out.write("{\r\n");
      out.write("if  (checkbox.checked==true){\r\n");
      out.write("    width.disabled=false;\r\n");
      out.write("\t}\r\n");
      out.write("else{\r\n");
      out.write("   width.disabled=true;\r\n");
      out.write("   }\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("function table(){\r\n");
      out.write("var tablehtml=\"\";\r\n");
      out.write("tablehtml=tablehtml+\"<table \";\r\n");
      out.write("if (align==\"left\"||align==\"center\"||align==\"right\")\r\n");
      out.write(" tablehtml=tablehtml+\"align=\"+align.value+\" \";\r\n");
      out.write("if (border!=\"\")\r\n");
      out.write(" tablehtml=tablehtml+\"border=\"+border.value+\" \"\r\n");
      out.write(" else\r\n");
      out.write(" tablehtml=tablehtml+\"border=1\"+\" \"\r\n");
      out.write("if(cellpad.value!=\"\")\r\n");
      out.write("  tablehtml=tablehtml+\"cellpadding=\"+cellpad.value+\" \"\r\n");
      out.write(" if(cellspace.value!=\"\")\r\n");
      out.write("  tablehtml=tablehtml+\"cellspacing=\"+cellspace.value+\" \"\r\n");
      out.write("  if(bordercolor.value!=\"\")\r\n");
      out.write("  tablehtml=tablehtml+\"bordercolor=\"+bordercolor.value+\" \"\r\n");
      out.write("  if(bgcolor.value!=\"\")\r\n");
      out.write("  tablehtml=tablehtml+\"bgcolor=\"+bgcolor.value+\" \"\r\n");
      out.write("  if  (checkbox.checked==true)\r\n");
      out.write("    {\r\n");
      out.write("\tif(width.value!=\"\")\r\n");
      out.write("    { tablehtml=tablehtml+\"width=\"+width.value\r\n");
      out.write("\t     tablehtml=tablehtml+WidthUnit.value+\"\"\r\n");
      out.write("\t}\r\n");
      out.write("\t}\r\n");
      out.write("\t tablehtml=tablehtml+\">\"\r\n");
      out.write("for (i=1;i<=rows.value;i++)\r\n");
      out.write("{\r\n");
      out.write("tablehtml=tablehtml+\"<tr>\";\r\n");
      out.write(" for (j=1;j<=columns.value;j++)\r\n");
      out.write("   tablehtml=tablehtml+\"<td></td>\";\r\n");
      out.write(" }\r\n");
      out.write(" tablehtml= tablehtml+\"</table>\";\r\n");
      out.write("window.returnValue = tablehtml;\r\n");
      out.write(" window.close();\r\n");
      out.write(" }\r\n");
      out.write("</script>\r\n");
      out.write("\r\n");
      out.write("</head>\r\n");
      out.write("<body bgcolor=menu topmargin=\"5\" leftmargin=\"0\">\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<table width=\"347\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" height=\"258\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td height=\"20\" width=\"84\"> <b>大小</b> </td>\r\n");
      out.write("    <td height=\"20\" colspan=\"4\"> <hr size=\"2\"> </td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td height=\"20\" colspan=\"2\" align=\"right\"><font size=\"2\"> 行数:</font></td>\r\n");
      out.write("    <td height=\"20\" width=\"81\"> <input type=\"text\" name=\"rows\" size=\"8\" maxlength=\"2\">\r\n");
      out.write("    </td>\r\n");
      out.write("    <td width=\"87\" height=\"0\" align=\"right\">列数:</td>\r\n");
      out.write("    <td height=\"0\" width=\"94\"> <input type=\"text\" name=\"columns\" size=\"8\" maxlength=\"2\">\r\n");
      out.write("    </td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td height=\"20\" colspan=\"2\"> <b><font size=\"2\">布局</font></b> </td>\r\n");
      out.write("    <td height=\"20\" colspan=\"3\"> <hr align=\"right\" size=\"2\"> </td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td height=\"20\" colspan=\"2\" align=\"right\"><font size=\"2\"> 对齐方式:</font></td>\r\n");
      out.write("    <td height=\"20\" width=\"81\"> <select name=\"align\">\r\n");
      out.write("        <option selected>Default</option>\r\n");
      out.write("        <option value=\"left\">Left</option>\r\n");
      out.write("        <option value=\"center\">Center</option>\r\n");
      out.write("        <option value=\"right\">Right</option>\r\n");
      out.write("      </select> </td>\r\n");
      out.write("    <td height=\"0\" colspan=\"2\"> &nbsp;&nbsp;&nbsp;&nbsp; <input name=\"checkbox\" type=\"checkbox\" onclick=\"checkchange();\" value=\"1\">\r\n");
      out.write("      指定宽度 </td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td height=\"20\" colspan=\"2\" align=\"right\"> 边框粗细:</td>\r\n");
      out.write("    <td height=\"20\" width=\"81\"> <input type=\"text\" name=\"border\" size=\"8\" maxlength=\"2\">\r\n");
      out.write("    </td>\r\n");
      out.write("    <td height=\"0\" align=\"right\" nowrap><input name=\"width\" type=\"text\" value=\"100\" size=\"5\" maxlength=\"3\" disabled></td>\r\n");
      out.write("    <td height=\"0\" align=\"center\" nowrap><select name=\"WidthUnit\">\r\n");
      out.write("        <option>像素</option>\r\n");
      out.write("        <option value=\"%\" selected>百分比</option>\r\n");
      out.write("      </select></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td height=\"20\" colspan=\"2\" align=\"right\"> 单元格边距:</td>\r\n");
      out.write("    <td height=\"20\" width=\"81\"> <input type=\"text\" name=\"cellpad\" size=\"8\" maxlength=\"2\">\r\n");
      out.write("    </td>\r\n");
      out.write("    <td height=\"0\" align=\"right\" nowrap>&nbsp;</td>\r\n");
      out.write("    <td height=\"0\" align=\"center\" nowrap>&nbsp;</td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td height=\"20\" colspan=\"2\" align=\"right\"> 单元格间距:</td>\r\n");
      out.write("    <td height=\"20\" width=\"81\"> <input type=\"text\" name=\"cellspace\" size=\"8\" maxlength=\"2\">\r\n");
      out.write("    </td>\r\n");
      out.write("    <td height=\"0\" width=\"87\">&nbsp;</td>\r\n");
      out.write("    <td height=\"0\" width=\"94\">&nbsp;</td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td height=\"19\" colspan=\"2\"> <b><font size=\"2\">颜色</font></b> </td>\r\n");
      out.write("    <td height=\"19\" colspan=\"3\"> <hr align=\"right\" size=\"2\"> </td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td height=\"20\" colspan=\"2\" align=\"right\"><font size=\"2\"> 边框颜色:</font></td>\r\n");
      out.write("    <td height=\"20\" width=\"81\"> <input type=\"text\" name=\"bordercolor\" size=\"8\" maxlength=\"7\" value=\"#000000\">\r\n");
      out.write("    </td>\r\n");
      out.write("    <td width=\"87\" height=\"0\" align=\"right\"><font size=\"2\">单元格背景:</font></td>\r\n");
      out.write("    <td height=\"0\" width=\"94\"> <input type=\"text\" name=\"bgcolor\" size=\"8\" maxlength=\"7\" value=\"#ffffff\">\r\n");
      out.write("    </td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td height=\"21\" colspan=\"5\"> <div align=\"right\"><br>\r\n");
      out.write("        <input class=button type=submit onClick='table();' value=\"确 定\" name=\"submit\">\r\n");
      out.write("        <input class=button type=button onClick='window.close();' value=\"取 消\" name=\"button\">\r\n");
      out.write("      </div></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("\r\n");
      out.write("<tr>\r\n");
      out.write("  <td>&nbsp; </td>\r\n");
      out.write("</tr>\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 + -