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

📄 accountlist_jsp.java

📁 Sun公司的<J2EE Tutorial>范例代码
💻 JAVA
字号:
package org.apache.jsp;

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

public final class accountList_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;
    PageContext _jspx_page_context = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html");
      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("\n\n<center>\n<table border=1 cellpadding=2 cellspacing=0 width=500 summary=\"layout\">\n<tr>\n<td valign=bottom>\n  <b><fmt:message key=\"AccountName\"/></b>\n</td>\n<td valign=bottom>\n  <b><fmt:message key=\"AccountId\"/></b>\n</td>\n<td valign=bottom>\n  <b><fmt:message key=\"AccountBalance\"/></b>\n</td>\n<td valign=bottom>\n  <b><fmt:message key=\"AccountCredit\"/></b>\n</td>\n</tr>\n\n");
      com.sun.ebank.web.CustomerBean customerBean = null;
      synchronized (request) {
        customerBean = (com.sun.ebank.web.CustomerBean) _jspx_page_context.getAttribute("customerBean", PageContext.REQUEST_SCOPE);
        if (customerBean == null){
          customerBean = new com.sun.ebank.web.CustomerBean();
          _jspx_page_context.setAttribute("customerBean", customerBean, PageContext.REQUEST_SCOPE);
        }
      }
      out.write('\n');
      org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper(_jspx_page_context.findAttribute("customerBean"), "customer", "${pageContext.request.userPrincipal.name}", null, null, false);
      out.write("\n<c:set var=\"accounts\" value=\"");
      out.write("${customerBean.accounts}");
      out.write("\" />\n");
      com.sun.ebank.web.DateHelper date = null;
      synchronized (request) {
        date = (com.sun.ebank.web.DateHelper) _jspx_page_context.getAttribute("date", PageContext.REQUEST_SCOPE);
        if (date == null){
          date = new com.sun.ebank.web.DateHelper();
          _jspx_page_context.setAttribute("date", date, PageContext.REQUEST_SCOPE);
        }
      }
      out.write("\n\n<c:forEach items=\"");
      out.write("${accounts}");
      out.write("\" var=\"ad\">\n\n<tr>\n  <c:url var=\"url\" value=\"/accountHist?accountId=");
      out.write("${ad.accountId}");
      out.write("&date=0&year=");
      out.write("${date.year}");
      out.write("&sinceMonth=");
      out.write("${date.month}");
      out.write("&sinceDay=1&beginMonth=");
      out.write("${date.month}");
      out.write("&beginDay=1&endMonth=");
      out.write("${date.month}");
      out.write("&endDay=1&activityView=0&sortOption=0\" />\n  <td><a href=\"");
      out.write("${url}");
      out.write('"');
      out.write('>');
      out.write("${ad.description}");
      out.write("</a></td>\n  <td>");
      out.write("${ad.accountId}");
      out.write("</td>\n  <td align=\"right\"><fmt:formatNumber value=\"");
      out.write("${ad.balance}");
      out.write("\" type=\"currency\" minFractionDigits=\"2\"/></td>\n  <td align=\"right\">\n    <c:if test=\"");
      out.write("${ad.creditLine != 0}");
      out.write("\">\n      $");
      out.write("${ad.remainingCredit}");
      out.write("</td>\n    </c:if>\n    <c:if test=\"");
      out.write("${ad.creditLine == 0}");
      out.write("\">\n      &nbsp;</td>\n    </c:if>\n</tr>\n\n</c:forEach>\n\n</table>\n\n</center>\n\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);
    }
  }
}

⌨️ 快捷键说明

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