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

📄 mycallout_005ffaile_jsp.java

📁 一个简单的java web项目 基于servlet构建
💻 JAVA
字号:
package org.apache.jsp.pages.LeftMenu.mycallout;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import cn.aresoft.util.SystemDictUtil;
import cn.aresoft.po.SystemDict;
import cn.aresoft.po.SystemDictId;
import java.util.*;;

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

  public Object getDependants() {
    return _jspx_dependants;
  }

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

  public void _jspDestroy() {
    _005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody.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");
      out.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \r\n");
      out.write("\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n");

	String cpath=request.getContextPath();

      out.write("\r\n");
      out.write("<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n");
      out.write("\t<head>\r\n");
      out.write("\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\r\n");
      out.write("\t\t<title>我的呼出电话处理</title>\r\n");
      out.write("\t\t<base target=\"_self\">\r\n");
      out.write("\t\t<script src=\"");
      out.print(cpath);
      out.write("/js/page.js\"></script>\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/validate.js\"></script>\r\n");
      out.write("\t\t<link href=\"");
      out.print(cpath);
      out.write("/style/css_common1.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<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("<script language=\"JavaScript\">\t\r\n");
      out.write("\t $(function(){\r\n");
      out.write("\t  \taddInputEffect();\r\n");
      out.write("\t  });\r\n");
      out.write("\tfunction submitForm(){\r\n");
      out.write("\t\tvar win = window.dialogArguments;\r\n");
      out.write("\r\n");
      out.write("\t\tgosubmit(document.getElementById('sform'));\r\n");
      out.write(" \t\t\t\twin.gotoSuccess();\r\n");
      out.write("\t\twindow.close();\r\n");
      out.write("\t}\r\n");
      out.write("\t\t\t\t\r\n");
      out.write("\r\n");
      out.write("\t\t\t</script>\r\n");
      out.write("\t</head>\r\n");
      out.write("<body leftmargin=\"0\" topmargin=\"0\" class=\"bgOffice\" style=\"width:100%;overflow-x:hidden;overflow-y:auto\">\r\n");
      out.write("\t\t<form method=\"post\" id=\"sform\" name=\"sform\"\r\n");
      out.write("\t\t\taction=\"");
      out.print(cpath);
      out.write("/mycallout/faildReason.action\">\r\n");
      out.write("\t\t<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"width:100%;height:100%;\">\r\n");
      out.write("\t\t\t<tr>\r\n");
      out.write("\t\t\t\t<td valign=\"top\" colspan=\"4\" style=\"border:none\">\r\n");
      out.write("\t\t\t\t\t<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"title\" width=\"100%\">\r\n");
      out.write("\t\t\t\t    \t<tr>\r\n");
      out.write("\t\t\t\t        <td style=\"height:25px\">呼出电话失败记录创建</td>\r\n");
      out.write("\t\t\t\t        <td align=\"right\">\r\n");
      out.write("\t\t\t\t        \t<input type=\"button\"  class=\"input02\"  maxlength=\"20\"\r\n");
      out.write("\t\t\t\t\t\t\tvalue=\"保存失败记录\" style=\"cursor: hand\" onclick=\"submitForm()\" />\r\n");
      out.write("\t\t\t\t         </td>\r\n");
      out.write("\t\t\t\t       </tr>\r\n");
      out.write("\t\t\t\t    </table>\r\n");
      out.write("\t\t\t\t</td>\t\t\t\t\r\n");
      out.write("\t\t\t</tr>\t\r\n");
      out.write("\t\t\t<tr>\r\n");
      out.write("\t\t\t<td>\r\n");
      out.write("\t\t\t<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"table02 inputLine\">\r\n");
      out.write("\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t<td colspan=\"4\">\r\n");
      out.write("\t\t\t\t\t\t<font color=\"red\">(以下带*的选项为必填)</font>\r\n");
      out.write("\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t<td align=\"right\">被叫号码:</td>\r\n");
      out.write("                     <td align=\"left\" class=\"bgInput\">\r\n");
      out.write("\t\t\t\t\t\t<input type=\"text\" class=\"input01\" dblength=\"20\" maxlength=\"20\" \r\n");
      out.write("\t\t\t\t\t\t\tvalue=\"");
      if (_jspx_meth_s_005fproperty_005f0(_jspx_page_context))
        return;
      out.write("\" disabled=\"disabled\"/>\r\n");
      out.write("\t\t\t\t\t\t\t<font color=\"red\">*</font>\r\n");
      out.write("\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t<td align=\"right\">失败原因:</td>\r\n");
      out.write("\t\t\t\t\t<td align=\"left\" class=\"bgInput\">\r\n");
      out.write("\t\t\t\t\t\t<select name=\"calloutFaile.id.failedReason\">\r\n");
      out.write("\t\t\t\t\t\t\t");
 
							SystemDictUtil sysutil = new SystemDictUtil();
							List list = sysutil.getDictItemByType("calloutfailedreason");
							Iterator it = list.iterator();
							while(it.hasNext()){
								SystemDict item = (SystemDict)it.next();
								SystemDictId id = item.getSystemDictId();
							
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t<option value=\"");
      out.print(id.getValue());
      out.write('"');
      out.write('>');
      out.print(item.getKey());
      out.write("</option>\r\n");
      out.write("\t\t\t\t\t\t\t");
}
      out.write("\r\n");
      out.write("\t\t\t\t\t\t</select>\r\n");
      out.write("\t\t\t\t\t\t<font color=\"red\">*</font>\r\n");
      out.write("\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t</tr>  \r\n");
      out.write("            \t<tr>\r\n");
      out.write("\t\t\t\t\t<td align=\"right\">备注信息:</td>\r\n");
      out.write("                     <td align=\"left\" class=\"bgInput\">\r\n");
      out.write("\t\t\t\t\t\t<textarea id=\"Pnote\" name=\"calloutFaile.id.note\" style=\"border:1px solid #ccc;\" cols=\"40\" rows=\"7\" maxlength=\"110\" onpropertychange=\"checklen(this)\"></textarea>\r\n");
      out.write("\t\t\t\t\t\t<br />\r\n");
      out.write("                        <br />\r\n");
      out.write("                        剩余字符数:<span id=\"tno\">110</span> \r\n");
      out.write("\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t</tr> \r\n");
      out.write("\t\t\t\t</table>\r\n");
      out.write("\t\t</form>\r\n");
      out.write("\t</body>\r\n");
      out.write("</html>\t\t\r\n");
      out.write("\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);
    }
  }

  private boolean _jspx_meth_s_005fproperty_005f0(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  s:property
    org.apache.struts2.views.jsp.PropertyTag _jspx_th_s_005fproperty_005f0 = (org.apache.struts2.views.jsp.PropertyTag) _005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody.get(org.apache.struts2.views.jsp.PropertyTag.class);
    _jspx_th_s_005fproperty_005f0.setPageContext(_jspx_page_context);
    _jspx_th_s_005fproperty_005f0.setParent(null);
    _jspx_th_s_005fproperty_005f0.setValue("#parameters.calledNo");
    int _jspx_eval_s_005fproperty_005f0 = _jspx_th_s_005fproperty_005f0.doStartTag();
    if (_jspx_th_s_005fproperty_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody.reuse(_jspx_th_s_005fproperty_005f0);
      return true;
    }
    _005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody.reuse(_jspx_th_s_005fproperty_005f0);
    return false;
  }
}

⌨️ 快捷键说明

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