/*
 * Generated by the Jasper component of Apache Tomcat
 * Version: ......
 * Generated at: 2020-04-17 07:16:58 UTC
 * Note: The last modified time of this file was set to
 *       the last modified time of the source file after
 *       generation to assist with modification tracking.
 */
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import jun.db.core.*;
import java.net.*;
import wiseoa.util.*;
import java.util.*;
import java.net.*;
import wiseoa.*;
import wiseoa.util.*;
import wiseoa.RBAC.*;
import wiseoa.mail.jstl.*;

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

  private static final javax.servlet.jsp.JspFactory _jspxFactory =
          javax.servlet.jsp.JspFactory.getDefaultFactory();

  private static java.util.Map<java.lang.String,java.lang.Long> _jspx_dependants;

  static {
    _jspx_dependants = new java.util.HashMap<java.lang.String,java.lang.Long>(2);
    _jspx_dependants.put("/rightverify.jsp", Long.valueOf(1476341677059L));
    _jspx_dependants.put("/WEB-INF/c.tld", Long.valueOf(1099983217476L));
  }

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

  private volatile javax.el.ExpressionFactory _el_expressionfactory;
  private volatile org.apache.tomcat.InstanceManager _jsp_instancemanager;

  public java.util.Map<java.lang.String,java.lang.Long> getDependants() {
    return _jspx_dependants;
  }

  public javax.el.ExpressionFactory _jsp_getExpressionFactory() {
    if (_el_expressionfactory == null) {
      synchronized (this) {
        if (_el_expressionfactory == null) {
          _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
        }
      }
    }
    return _el_expressionfactory;
  }

  public org.apache.tomcat.InstanceManager _jsp_getInstanceManager() {
    if (_jsp_instancemanager == null) {
      synchronized (this) {
        if (_jsp_instancemanager == null) {
          _jsp_instancemanager = org.apache.jasper.runtime.InstanceManagerFactory.getInstanceManager(getServletConfig());
        }
      }
    }
    return _jsp_instancemanager;
  }

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

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

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

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;


    try {
      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");
      out.write("\r\n");
      out.write("\r\n");
      out.write(" \r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write(" \r\n");
      out.write("\r\n");
      out.write("\r\n");
  
	
	//éå¸¸æ¯å¯¹äºé£æ­¤éè¦æç®¡çåæéçé¡µé¢ç¨åå«æ¬é¡µé¢çæ¹å¼æ¥è¿è¡æéæ§å¶
	// å¦æå½åç¨æ·æç®¡çåæéï¼é£ä¹ç´æ¥è¿å
	// å¦æå½åé¡µé¢æ²¡æå å¥å°å·¥ä½å°ä¸­ï¼è¡¨ç¤ºæ²¡æè¿è¡é¢å¤ææï¼é£ä¹æç¤ºæ æé
	//å¦æå å¥å°äºå·¥ä½å°ï¼å¹¶ä¸åéå½åç¨æ·æ¥ææéï¼é£ä¹ok 
	User user=User.getUserFromRequest( request);
	 
	 if ( user.getRole()!=1) //å¦æä¸æ¯ç³»ç»ç®¡çæéçäººï¼
	 {
		 	String url =WiseFilter.getShortURL( request); 
			int unit = user.getUnit();
		 
			RBAC_cache cache = RBAC_cache.getInstance(null, unit);
 			if (!cache.needVerify(url)) 
 			{
 				String s= User.TIP_NORIGHT;
	 			response.sendRedirect( "SystemTip.jsp?info="+  URLEncoder.encode(s,"UTF-8") );
	 			return;
			} 

            //å¦æä¹æ²¡æè¿è¡å·¥ä½å°ææ
  	 		if ( ! WiseFilter.urlOnCommision( user, url ,0) ) 
			{ 
 	    		String s= User.TIP_NORIGHT;
	 			response.sendRedirect( "SystemTip.jsp?info="+  URLEncoder.encode(s,"UTF-8") );
	 			return;
			}
	 
	 }


      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write(" \r\n");
      out.write(" ");
 
 
	 int userid=user.getId();
    //System.out.println( userid);
	 String s= FF.GetStringFromRequest(request,"file","");
	
	if ( s.length()>0 && user.getRole()==1 )
	{
	}else
	{
		s="exercise"+userid;
	}
	
	String file= s;
	if ( !file.endsWith(".js") )  file=file+".js"  ;
 
 	FF.pageContextSetAttribute(pageContext,"file",   file ); 
 
   System.out.println( file);
 
 
      out.write("\r\n");
      out.write(" \r\n");
      out.write("\r\n");
      out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n");
      out.write("<HTML>\r\n");
      out.write("<head><meta http-equiv=\"X-UA-Compatible\" content=\"IE=EmulateIE7\" />\r\n");
      out.write("<META http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\r\n");
      out.write("\r\n");
      out.write(" \r\n");
      out.write("<TITLE></TITLE>\r\n");
      out.write(" <script type=\"text/javascript\" src=\"js/domutil.js\"></script>\r\n");
      out.write("<script>\r\n");
      out.write("\r\n");
      out.write(" \r\n");
      out.write("window.onload =OnLoad\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("function OnLoad()\r\n");
      out.write("{\r\n");
      out.write("window.document.body.scroll=\"no\";\r\n");
      out.write(" \r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write(" </script>\r\n");
      out.write(" \r\n");
      out.write("<style type=\"text/css\">\r\n");
      out.write("<!--\r\n");
      out.write("body {\r\n");
      out.write("\tmargin-left: 0px;\r\n");
      out.write("\tmargin-top: 0px;\r\n");
      out.write("\tmargin-right: 0px;\r\n");
      out.write("\tmargin-bottom: 0px;\r\n");
      out.write("}\r\n");
      out.write("-->\r\n");
      out.write("</style></HEAD>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<BODY scroll=\"no\"> \r\n");
      out.write("\r\n");
      out.write("<applet id=\"FlowForm\"   code=\"wiseoa.flow.applet.FlowForm\"  codebase=\".\"   \r\n");
      out.write("archive=\"flowform.jar,jedit23.jar,zexcel.jar,datastore.jar, regexp14.jar,rhino.jar,kxml.jar,jep.jar,preview.jar,jfreechart.jar,comm.jar,dock.jar,Qrcode-C.jar,qrcode-R.jar\"   width =\"100%\"  height=\"100%\">\r\n");
      out.write(" <PARAM name=\"java_arguments\" value=\"-Xmx512m  -XX:PermSize=64m  -XX:MaxPermSize=256m \">\r\n");
      out.write("<param name=file  value='");
      if (_jspx_meth_c_005fout_005f0(_jspx_page_context))
        return;
      out.write("'>  \r\n");
      out.write("<param name=taskid  value='");
      if (_jspx_meth_c_005fout_005f1(_jspx_page_context))
        return;
      out.write("'>\r\n");
      out.write("<param name=taskdataminingstepguid  value='");
      if (_jspx_meth_c_005fout_005f2(_jspx_page_context))
        return;
      out.write("'>\r\n");
      out.write("  \r\n");
      out.write("\r\n");
      out.write("<param name=debug  value='true'>  \r\n");
      out.write("  \r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("</applet>\r\n");
      out.write("\r\n");
      out.write("<!--     用于输出到Excel  -->\t\r\n");
      out.write("\t <FORM  style=\"display:none\"  id='form_toexcel'   name='form_toexcel'   \r\n");
      out.write("\t\tmethod=\"POST\" action=\"servlet/wiseoa.flow.jsprpc.WorkToExcel\"    target='frame_toexcel'>\r\n");
      out.write("\t\t\t<input  id=\"toexcel_id\" name=\"toexcel_id\"  >\r\n");
      out.write("\t\t\t<input  id=\"action\" name=\"action\"  value='export'>\r\n");
      out.write("\t\t\t<input  id=\"subject\" name=\"subject\"  value=''>\r\n");
      out.write("\t\t\t<textarea  id=\"toexcel_xml\" name=\"toexcel_xml\" ></textarea>\r\n");
      out.write("\t\r\n");
      out.write("</FORM>\r\n");
      out.write("\r\n");
      out.write("<script type=\"text/javascript\">\r\n");
      out.write("\t//导出某些内容到Excel,并下载\r\n");
      out.write("\tfunction ExportSomethingToExcel(fileName,something) \r\n");
      out.write("\t{\r\n");
      out.write("\t \tvar f = $E('form_toexcel');\r\n");
      out.write("\t \tf.subject.value=fileName;\r\n");
      out.write("\t \tf.action.value=\"export\";\r\n");
      out.write("\t \tf.toexcel_xml.value = (something);\r\n");
      out.write("\t\tf.submit();\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\t</script>\r\n");
      out.write("\t\r\n");
      out.write("\t\r\n");
      out.write("</BODY>\r\n");
      out.write("</HTML>\r\n");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }

  private boolean _jspx_meth_c_005fout_005f0(javax.servlet.jsp.PageContext _jspx_page_context)
          throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  c:out
    org.apache.taglibs.standard.tag.el.core.OutTag _jspx_th_c_005fout_005f0 = (org.apache.taglibs.standard.tag.el.core.OutTag) _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.el.core.OutTag.class);
    _jspx_th_c_005fout_005f0.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f0.setParent(null);
    // /scripttest.jsp(76,25) name = value type = java.lang.String reqTime = false required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f0.setValue("${file}");
    int _jspx_eval_c_005fout_005f0 = _jspx_th_c_005fout_005f0.doStartTag();
    if (_jspx_th_c_005fout_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f0);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f0);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f1(javax.servlet.jsp.PageContext _jspx_page_context)
          throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  c:out
    org.apache.taglibs.standard.tag.el.core.OutTag _jspx_th_c_005fout_005f1 = (org.apache.taglibs.standard.tag.el.core.OutTag) _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.el.core.OutTag.class);
    _jspx_th_c_005fout_005f1.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f1.setParent(null);
    // /scripttest.jsp(77,27) name = value type = java.lang.String reqTime = false required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f1.setValue("${param.taskid}");
    int _jspx_eval_c_005fout_005f1 = _jspx_th_c_005fout_005f1.doStartTag();
    if (_jspx_th_c_005fout_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f1);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f1);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f2(javax.servlet.jsp.PageContext _jspx_page_context)
          throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  c:out
    org.apache.taglibs.standard.tag.el.core.OutTag _jspx_th_c_005fout_005f2 = (org.apache.taglibs.standard.tag.el.core.OutTag) _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.el.core.OutTag.class);
    _jspx_th_c_005fout_005f2.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f2.setParent(null);
    // /scripttest.jsp(78,43) name = value type = java.lang.String reqTime = false required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f2.setValue("${param.taskdataminingstepguid}");
    int _jspx_eval_c_005fout_005f2 = _jspx_th_c_005fout_005f2.doStartTag();
    if (_jspx_th_c_005fout_005f2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f2);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f2);
    return false;
  }
}
