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

📄 km_005fmodify_jsp.java

📁 一个简单的java web项目 基于servlet构建
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
package org.apache.jsp.pages.LeftMenu.km;

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

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

  private static java.util.List _jspx_dependants;

  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005fform_005fname_005fmethod_005fenctype_005faction;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005fiterator_005fvalue_005fstatus;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005fif_005ftest;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005felse;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _005fjspx_005ftagPool_005fs_005fform_005fname_005fmethod_005fenctype_005faction = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fs_005fiterator_005fvalue_005fstatus = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fs_005fif_005ftest = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fs_005felse = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
  }

  public void _jspDestroy() {
    _005fjspx_005ftagPool_005fs_005fform_005fname_005fmethod_005fenctype_005faction.release();
    _005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody.release();
    _005fjspx_005ftagPool_005fs_005fiterator_005fvalue_005fstatus.release();
    _005fjspx_005ftagPool_005fs_005fif_005ftest.release();
    _005fjspx_005ftagPool_005fs_005felse.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=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;

      out.write("\r\n");
      out.write("\r\n");

String cpath = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+cpath+"/";

      out.write("\r\n");
      out.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n");
      out.write("<html>\r\n");
      out.write("\t<head>\r\n");
      out.write("\t\t<title>知识点的修改</title>\r\n");
      out.write("\t\t<link href=\"");
      out.print(cpath);
      out.write("/style/layout.css\" rel=\"stylesheet\"\r\n");
      out.write("\t\t\ttype=\"text/css\" />\r\n");
      out.write("\t\t<link href=\"");
      out.print(cpath);
      out.write("/style/mian.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n");
      out.write("\t\t<link href=\"");
      out.print(cpath);
      out.write("/style/css_common1.css\" rel=\"stylesheet\"type=\"text/css\" />\r\n");
      out.write("\t\t<script src=\"");
      out.print(cpath);
      out.write("./js/calendar.js\"></script>\r\n");
      out.write("\t\t<script src=\"");
      out.print(cpath);
      out.write("/js/jquery126.js\"></script>\r\n");
      out.write("\t\t<script src=\"");
      out.print(cpath);
      out.write("/js/effect.js\"></script>\t\r\n");
      out.write("\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\t\r\n");
      out.write("\t\t\t\r\n");
      out.write("\t\t<base href=\"");
      out.print(basePath);
      out.write("\">\r\n");
      out.write("\t</head>\r\n");
      out.write("\t<script language=\"JavaScript\">\r\n");
      out.write("<!--\r\n");
      out.write("\t $(function(){\r\n");
      out.write("\t\t  \taddInputEffect();\r\n");
      out.write("\t\t  });\r\n");
      out.write("\t\t  \r\n");
      out.write("\tfunction check(){\r\n");
      out.write("\t\tif(document.getElementById('returnsign').value==1){\r\n");
      out.write("\t\t\talert(\"上传成功!\");\r\n");
      out.write("\t\t}else if(document.getElementById('returnsign').value==2){\r\n");
      out.write("\t\t\t alert(\"上传失败,改文件已经上传过!\");\r\n");
      out.write("\t\t}else if(document.getElementById('returnsign').value==3){\r\n");
      out.write("\t\t\t alert(\"上传失败,上传文件过大!\");\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\tdocument.getElementById('returnsign').value=-1;\r\n");
      out.write("\t\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\tfunction subchk(){\r\n");
      out.write("\t\r\n");
      out.write("\t\t//document.form.content.value= window.content_html.getHTML(); \r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\t\r\n");
      out.write("\tfunction modifyClick(){\r\n");
      out.write("\t\tif(document.getElementById('title').value==\"\"){\r\n");
      out.write("\t\t\t\talert(\"请输入知识点标题!\")\r\n");
      out.write("\t        \tdocument.getElementById('title').focus()\r\n");
      out.write("\t        \treturn;\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t\tif(document.getElementById('key').value==\"\"){\r\n");
      out.write("\t\t\t\talert(\"请输入关键字!\")\r\n");
      out.write("\t        \tdocument.getElementById('key').focus()\r\n");
      out.write("\t        \treturn;\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t\tvar para=document.getElementById('type').value\r\n");
      out.write('\r');
      out.write('\n');
      out.write('\r');
      out.write('\n');
      out.write('\r');
      out.write('\n');
      out.write('\r');
      out.write('\n');
      out.write('\r');
      out.write('\n');
      out.write('\r');
      out.write('\n');
      out.write("\r\n");
      out.write("\t\tif(para==\"link\"){\r\n");
      out.write("\t\t\tif(document.getElementById('net').value==\"\"){\r\n");
      out.write("\t\t\t\talert(\"请输入链接!\")\r\n");
      out.write("\t        \tdocument.form.net.focus()\r\n");
      out.write("\t        \treturn;\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t\t\tvar urlreg=/^[A-Za-z0-9]+\\.[A-Za-z0-9]+[\\/=\\?%\\-&_~`@[\\]\\':+!]*([^<>\\\"\\\"])*$/\r\n");
      out.write("\t\t\tvar url=document.getElementById('net').value;\r\n");
      out.write("\t\t\tif (!urlreg.test(url))\r\n");
      out.write("\t\t\t    {\r\n");
      out.write("\t\t\t      alert(\"网址格式错误\\n例如:baidu.com\")\r\n");
      out.write("\t\t\t      document.form.net.focus()\r\n");
      out.write("\t        \t  return;\r\n");
      out.write("\t\t\t     }  \r\n");
      out.write("\t\t}\r\n");
      out.write("\t\tif(para==\"text\"){\r\n");
      out.write("\t\t\t//document.form.content.value= window.content_html.getHTML(); \r\n");
      out.write("\t\t\tif(document.getElementById('content').value==\"\"){\r\n");
      out.write("\t\t\t\talert(\"请输入文本!\")\r\n");
      out.write("\t        \tdocument.form.content.focus()\r\n");
      out.write("\t        \treturn;\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\tvar windowId=document.form.windowId.value;\r\n");
      out.write("\t\tvar treeId=document.form.treeId.value;\r\n");
      out.write("\t\t\r\n");
      out.write("\t\tdocument.form.action=\"");
      out.print(cpath);
      out.write("/km/updatekmnode.action?treeId=\"+treeId+\"&windowId=\"+windowId;\r\n");
      out.write("\r\n");
      out.write("\t  \tgosubmit(document.form);\r\n");
      out.write("\t}\r\n");
      out.write("\t\t\t\r\n");
      out.write("\tfunction ItmAction(){\r\n");
      out.write("\t\tvar para=document.getElementById('type').value\r\n");
      out.write("\t\tif(para==\"text\"){\r\n");
      out.write("\r\n");
      out.write("\t\t\t//window.content_html.setHTML(document.form.content1.value);\r\n");
      out.write("\t\t\t\r\n");
      out.write("\t\t\tdocument.getElementById('text').style.display=\"\";\r\n");
      out.write("\t\t\tdocument.getElementById('link').style.display=\"none\";\r\n");
      out.write("\t\t\tdocument.getElementById('doc').style.display=\"none\";\r\n");
      out.write("\t\t\t\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\tif(para==\"doc\"){\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t\tdocument.getElementById('doc').style.display=\"\";\r\n");
      out.write("\t\t\tdocument.getElementById('text').style.display=\"none\";\r\n");
      out.write("\t\t\tdocument.getElementById('link').style.display=\"none\";\r\n");
      out.write("\t\t\t\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\tif(para==\"link\"){\r\n");
      out.write("\r\n");
      out.write("\t\t\tdocument.getElementById('link').style.display=\"\";\r\n");
      out.write("\t\t\tdocument.getElementById('doc').style.display=\"none\";\r\n");
      out.write("\t\t\tdocument.getElementById('text').style.display=\"none\";\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\tfunction refnode(id){\r\n");
      out.write("\t\twindow.open(\"");
      out.print(cpath);
      out.write("/km/showreftree.action?inputid=\"+id, \"\", \"height=500, width=300, toolbar=atmo , menubar=no, scrollbars=no, resizable=no, location=no, status=no\");\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\tfunction myopenWindows(url,name,id){\r\n");
      out.write("\t  try{\r\n");
      out.write("\t\twindow.top.frames['left'].openWindows(url,name,id); \r\n");
      out.write("\t  }catch(er){\r\n");
      out.write("\t    alert(er.name+\":\"+er.message);\r\n");

⌨️ 快捷键说明

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