package org.apache.jsp; import test.*; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; import org.apache.jasper.runtime.*; /* File Declaration Phase */ public class _testBean extends com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase { /* Class Declaration Phase */ // begin [file="/testBean.jsp";from=(1,0);to=(1,64)] // end static { /* Static Initializer Phase */ } public _testBean( ) { } private static boolean _jspx_inited = false; public final void _jspx_init() throws org.apache.jasper.runtime.JspException { /* Init Method Phase */ } 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; String _value = null; java.util.Stack _jspxTagObjects = new java.util.Stack(); /* Service Declaration Phase */ try { if (_jspx_inited == false) { synchronized (this) { if (_jspx_inited == false) { _jspx_init(); _jspx_inited = true; } } } _jspxFactory = JspFactory.getDefaultFactory(); response.setContentType("text/html;charset=ISO-8859-1"); pageContext = _jspxFactory.getPageContext(this, request, response, "", true, 8192, true); application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); /* Service Method Phase */ // HTML // begin [file="/testBean.jsp";from=(0,27);to=(1,0)] out.write("\r\n"); // end // begin [file="/testBean.jsp";from=(1,0);to=(1,64)] test.TestBean testBean = null; boolean _jspx_specialtestBean = false; synchronized (pageContext) { testBean= (test.TestBean) pageContext.getAttribute("testBean",PageContext.PAGE_SCOPE); if ( testBean == null ) { _jspx_specialtestBean = true; try { testBean = (test.TestBean) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "test.TestBean"); } catch (ClassNotFoundException exc) { throw new InstantiationException(exc.getMessage()); } catch (Exception exc) { throw new ServletException (" Cannot create bean of class "+"test.TestBean", exc); } pageContext.setAttribute("testBean", testBean, PageContext.PAGE_SCOPE); } } if(_jspx_specialtestBean == true) { // end // begin [file="/testBean.jsp";from=(1,0);to=(1,64)] } // end // HTML // begin [file="/testBean.jsp";from=(1,64);to=(2,0)] out.write("\r\n"); // end // begin [file="/testBean.jsp";from=(2,2);to=(8,0)] //TestBean testBean; TestBean[] beans = new TestBean[4]; for(int i = 0; i < beans.length; i++) { beans[i] = new TestBean(); } // end // HTML // begin [file="/testBean.jsp";from=(8,2);to=(22,0)] out.write("\r\n\r\n\r\n\r\n\r\n\tUntitled\r\n\r\n\r\n\r\n
\r\n\t\r\n\t\r\n\r\n
\r\n"); // end // begin [file="/testBean.jsp";from=(22,2);to=(23,23)] for(int i = 0; i < beans.length; i++) { testBean = beans[i]; // end // HTML // begin [file="/testBean.jsp";from=(23,25);to=(24,0)] out.write("\r\n"); // end // begin [file="/testBean.jsp";from=(24,0);to=(24,48)] JspRuntimeLibrary.introspect(pageContext.findAttribute("testBean"), request); // end // HTML // begin [file="/testBean.jsp";from=(24,48);to=(25,0)] out.write("\r\n"); // end // begin [file="/testBean.jsp";from=(25,3);to=(25,28)] out.print( testBean.getFirstname() ); // end // HTML // begin [file="/testBean.jsp";from=(25,30);to=(25,31)] out.write(" "); // end // begin [file="/testBean.jsp";from=(25,34);to=(25,58)] out.print( testBean.getLastname() ); // end // HTML // begin [file="/testBean.jsp";from=(25,60);to=(26,0)] out.write("\r\n"); // end // begin [file="/testBean.jsp";from=(26,2);to=(26,5)] } // end // HTML // begin [file="/testBean.jsp";from=(26,7);to=(29,0)] out.write("\r\n\r\n\r\n"); // end } catch (Throwable t) { if (out != null && out.getBufferSize() != 0) out.clearBuffer(); if (pageContext != null) pageContext.handlePageException(t); } finally { while (_jspxTagObjects.empty() == false){ ((javax.servlet.jsp.tagext.Tag)_jspxTagObjects.pop()).release(); } if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext); /* Service Finally Phase */ } } }