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

📄 role_005foperate1_jsp.java

📁 JSP移动商品管理平台源代码.........
💻 JAVA
字号:
package org.apache.jsp.imis_005fmanager;

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

public final class Role_005fOperate1_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;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html;charset=gb2312");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			"/error/error.jsp", true, 8192, true);
      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("<HTML>\r\n");
      out.write("<HEAD>\r\n");
      out.write("<TITLE>角色信息维护");
      out.write("</TITLE>\r\n");
      out.write("<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html\"; charset=\"gb2312\">\r\n");
      out.write("<link href=\"css/style.css\" rel=\"stylesheet\" type=\"text/css\">\r\n");
      out.write("</HEAD>\r\n");
      out.write("<script language=\"JavaScript\">\r\nfunction Close(s1,s2,s3,s4,s5,s6){\r\n\twindow.moveTo(-400,-400);\r\n\tif (window.opener){\r\n\t\tif (s5 == \"purview\"){\r\n\t\t\tsHref\t=\t\"PurviewList.jsp?TRoleID=\"+s1\r\n\t\t     \t\t\t+\"&TRoleName=\"+s2\r\n\t\t     \t\t\t+\"&TPurview=\"+s3\r\n\t\t     \t\t\t+\"&TRemark=\"+s4\r\n\t\t     \t\t\t+\"&TAction=\"+s5;\t\r\n\t\t     \t\r\n\t\t}\r\n\t\telse{\r\n\t\t\tsHref\t=\twindow.opener.location.href;\t\r\n\t\t}\r\n\t\twindow.opener.location.href\t=\tsHref;\t\r\n\t}\r\n\twindow.alert(s6);\t\r\n\twindow.close();\t\t\r\n}\r\n");
      out.write("</script>\r\n");

   
    String sRoleID =request.getParameter("TRoleID");
    String sRoleName =request.getParameter("TRoleName");     
    String sPurview =request.getParameter("TPurview");
    String sRemark =request.getParameter("TRemark");        
    String sAction =request.getParameter("TAction");     


      out.write("\r\n");
      imis_manager.role_maintain role_maintain = null;
      synchronized (pageContext) {
        role_maintain = (imis_manager.role_maintain) pageContext.getAttribute("role_maintain", PageContext.PAGE_SCOPE);
        if (role_maintain == null){
          try {
            role_maintain = (imis_manager.role_maintain) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "imis_manager.role_maintain");
          } catch (ClassNotFoundException exc) {
            throw new InstantiationException(exc.getMessage());
          } catch (Exception exc) {
            throw new ServletException("Cannot create bean of class " + "imis_manager.role_maintain", exc);
          }
          pageContext.setAttribute("role_maintain", role_maintain, PageContext.PAGE_SCOPE);
        }
      }
      out.write("\r\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.handleSetProperty(pageContext.findAttribute("role_maintain"), "roleID",
sRoleID);
      out.write("\r\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.handleSetProperty(pageContext.findAttribute("role_maintain"), "roleName",
sRoleName);
      out.write("\r\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.handleSetProperty(pageContext.findAttribute("role_maintain"), "purview",
sPurview);
      out.write("\r\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.handleSetProperty(pageContext.findAttribute("role_maintain"), "remark",
sRemark);
      out.write("\r\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.handleSetProperty(pageContext.findAttribute("role_maintain"), "action",
sAction);
      out.write("\r\n");

	//String result = role_maintain.GBtoISO(role_maintain.processthis());
	String result = role_maintain.processthis();
	String sParam= new String("javascript:Close('"+sRoleID+"','"+sRoleName+"','"+sPurview+"','"+sRemark+"','"+sAction+"','"+result+"')");

      out.write("\r\n");
      out.write("<body background=\"images/bg_main.png\"\tonload=");
      out.print( sParam );
      out.write(">\r\n");
      out.write("</body>\r\n");
      out.write("</html>");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        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 + -