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

📄 groupform_jsp.java

📁 一个自己做的公司网站和办公职员管理系统。
💻 JAVA
字号:
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
import ws.woa.core.*;
import ws.woa.util.*;

public class GroupForm_jsp extends HttpJspBase {


  private static java.util.Vector _jspx_includes;

  public java.util.List getIncludes() {
    return _jspx_includes;
  }

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

    JspFactory _jspxFactory = null;
    javax.servlet.jsp.PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html; charset=Shift_JIS");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

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

/**
 * WOA Group Management, ADD/Modify Form
 */

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      ws.woa.core.GroupInfo group = null;
      synchronized (request) {
        group = (ws.woa.core.GroupInfo) pageContext.getAttribute("group", PageContext.REQUEST_SCOPE);
        if (group == null){
          try {
            group = (ws.woa.core.GroupInfo) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "ws.woa.core.GroupInfo");
          } catch (ClassNotFoundException exc) {
            throw new InstantiationException(exc.getMessage());
          } catch (Exception exc) {
            throw new ServletException("Cannot create bean of class " + "ws.woa.core.GroupInfo", exc);
          }
          pageContext.setAttribute("group", group, PageContext.REQUEST_SCOPE);
        }
      }
      out.write("\r\n\r\n");
      out.write("<SCRIPT LANGUAGE=\"JavaScript\">\r\nfunction submit_check(){\r\n  if(!checkNotEmpty('Group Name',document.GroupForm.GroupName) ||\r\n     !checkBytes('Group Name',document.GroupForm.GroupName,100)){\r\n    return false;\r\n  } else {\r\n    ");
 if(request.getParameter("INSERT_FORM")!=null){ 
      out.write("\r\n      return confirm('Add new?');\r\n    ");
 } else { 
      out.write("\r\n      return confirm('Modify?');\r\n    ");
 } 
      out.write("\r\n  }\r\n\r\n}\r\n");
      out.write("</SCRIPT>\r\n\r\n");
      out.write("<h2>グループ管理");
      out.write("</h2>\r\n\r\n");
      out.write("<FORM ACTION=\"group.module\" METHOD=\"POST\" NAME=\"GroupForm\" ONSUBMIT=\"return submit_check();\">\r\n");
      out.write("<TABLE>\r\n");
      out.write("\r\n");
      out.write("<TR>\r\n  ");
      out.write("<TH>GroupName");
      out.write("</TH>\r\n  ");
      out.write("<TD>\r\n    ");
      out.write("<INPUT TYPE=\"TEXT\" NAME=\"GroupName\"\r\n           VALUE=\"");
      out.print( StrUtil.tagFilter(group.getGroupName()) );
      out.write("\">\r\n  ");
      out.write("</TD>\r\n");
      out.write("</TR>\r\n");
      out.write("<TR>\r\n  ");
      out.write("<TH>GroupType");
      out.write("</TH>\r\n  ");
      out.write("<TD>\r\n    ");
      out.write("<SELECT NAME=\"GroupType\">\r\n      ");
      out.write("<OPTION VALUE=\"0\"");
 if(group.getGroupType()==GroupType.ADMIN ){ 
      out.write(" SELECTED");
 } 
      out.write(">");
      out.print( GroupType.ADMIN  );
      out.write("\r\n      ");
      out.write("<OPTION VALUE=\"1\"");
 if(group.getGroupType()==GroupType.NORMAL){ 
      out.write(" SELECTED");
 } 
      out.write(">");
      out.print( GroupType.NORMAL );
      out.write("\r\n    ");
      out.write("</SELECT>\r\n  ");
      out.write("</TD>\r\n");
      out.write("</TR>\r\n");
      out.write("<TR>\r\n  ");
      out.write("<TH>UseFlag");
      out.write("</TH>\r\n  ");
      out.write("<TD>\r\n    ");
      out.write("<SELECT NAME=\"UseFlag\">\r\n      ");
      out.write("<OPTION VALUE=\"1\"");
 if(group.getUseFlag()){ 
      out.write(" SELECTED");
 } 
      out.write(">Usable\r\n      ");
      out.write("<OPTION VALUE=\"0\"");
 if(!group.getUseFlag()){ 
      out.write(" SELECTED");
 } 
      out.write(">Unusable\r\n    ");
      out.write("</SELECT>\r\n  ");
      out.write("</TD>\r\n");
      out.write("</TR>\r\n");
      out.write("</TABLE>\r\n\r\n");
      out.write("<BR>\r\n");
 if(request.getParameter("INSERT_FORM")!=null){ 
      out.write("\r\n  ");
      out.write("<INPUT TYPE=\"SUBMIT\" NAME=\"INSERT_EXEC\" VALUE=\" Add \">\r\n");
 } else { 
      out.write("\r\n  ");
      out.write("<INPUT TYPE=\"SUBMIT\" NAME=\"UPDATE_EXEC\" VALUE=\" Modify \">\r\n  ");
      out.write("<INPUT TYPE=\"HIDDEN\" NAME=\"GroupID\" VALUE=\"");
      out.print( group.getGroupID() );
      out.write("\">\r\n");
 } 
      out.write("\r\n\r\n");
      out.write("<INPUT TYPE=\"RESET\" VALUE=\" Reset \">\r\n");
      out.write("<INPUT TYPE=\"BUTTON\" VALUE=\" Go Back \" ONCLICK=\"history.back()\">\r\n");
      out.write("</FORM>\r\n\r\n");
    } catch (Throwable t) {
      out = _jspx_out;
      if (out != null && out.getBufferSize() != 0)
        out.clearBuffer();
      if (pageContext != null) pageContext.handlePageException(t);
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
    }
  }
}

⌨️ 快捷键说明

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