package html.ejbPage;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
import java.io.PrintWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.ObjectInputStream;
import java.util.Vector;
import org.apache.jasper.runtime.*;
import java.beans.*;
import org.apache.jasper.JasperException;
import java.io.ByteArrayOutputStream;
import org.apache.jasper.compiler.ibmtsx.*;
import org.apache.jasper.compiler.ibmdb.*;
import java.sql.SQLException;
import com.ibm.etools.utc.*;
import com.ibm.etools.utc.model.ClassModel;


public class _reference_jsp_0 extends HttpJspBase {

    static char[][] _jspx_html_data = null;
    // end

    static {
    }
    public _reference_jsp_0( ) {
    }

    private static boolean _jspx_inited = false;

    private static boolean checkedAttributeIgnoreException = false;
    private static boolean throwException = true;
    
    public final void _jspx_init() throws JasperException {
        ObjectInputStream oin = null;
        int numStrings = 0;
        try {
            InputStream fin = this.getClass().getClassLoader().getResourceAsStream("html/ejbPage/_reference_jsp_0.dat");
            oin = new ObjectInputStream(fin);
            _jspx_html_data = (char[][]) oin.readObject();
        } catch (Exception ex) {
            throw new JasperException("Unable to open data file");
        } finally {
            if (oin != null)
                try { oin.close(); } catch (IOException ignore) { }
        }
    }

    public void _jspService(HttpServletRequest request, HttpServletResponse  response)
        throws 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;
        setBooleanIgnoreException();
        try {

            if (_jspx_inited == false) {
                _jspx_init();
                _jspx_inited = true;
            }
            _jspxFactory = JspFactory.getDefaultFactory();
            response.setContentType("text/html; charset=utf-8");
            pageContext = _jspxFactory.getPageContext(this, request, response,
			"/error.jsp", true, 8192, true);

            application = pageContext.getServletContext();
            config = pageContext.getServletConfig();
            session = pageContext.getSession();
            out = pageContext.getOut();

            // ##DEBUG## "e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 1,0-"e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 10,0
                out.print(_jspx_html_data[0]);
            // end
            // ##DEBUG## "e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 10,139-"e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 11,0
                out.print(_jspx_html_data[1]);
            // end
            // ##DEBUG## "e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 11,0-"e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 11,95
                com.ibm.etools.utc.view.ReferenceView referenceView = null;
                boolean _jspx_specialreferenceView  = false;
                 synchronized (session) {
                    referenceView= (com.ibm.etools.utc.view.ReferenceView)
                    pageContext.getAttribute("referenceView",PageContext.SESSION_SCOPE);
                    if ( referenceView == null ) {
                        _jspx_specialreferenceView = true;
                        try {
                            referenceView = (com.ibm.etools.utc.view.ReferenceView) Beans.instantiate(getClassLoader(), "com.ibm.etools.utc.view.ReferenceView");
                        } catch (Exception exc) {
                             throw new ServletException (" Cannot create bean of class "+"com.ibm.etools.utc.view.ReferenceView");
                        }
                        pageContext.setAttribute("referenceView", referenceView, PageContext.SESSION_SCOPE);
                    }
                    String doSetAttribute = getInitParameter("dosetattribute");
                    if ((doSetAttribute != null) && (doSetAttribute.equalsIgnoreCase("true"))){
                        session.setAttribute("referenceView", referenceView);
                    }
                 } 
                if(_jspx_specialreferenceView == true) {
            // end
            // ##DEBUG## "e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 11,0-"e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 11,95
                }
            // end
            // ##DEBUG## "e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 11,95-"e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 12,0
                out.print(_jspx_html_data[2]);
            // end
            // ##DEBUG## "e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 12,37-"e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 22,9
                out.print(_jspx_html_data[3]);
            // end
            // ##DEBUG## "e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 22,9-"e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 22,56
                /* ----  utc:resource ---- */
                com.ibm.etools.utc.ResourceTag _jspx_th_utc_resource_0 = new com.ibm.etools.utc.ResourceTag();
                _jspx_th_utc_resource_0.setPageContext(pageContext);
                _jspx_th_utc_resource_0.setParent(null);
                _jspx_th_utc_resource_0.setKey("ejbPageReferenceViewTitle");
                try {
                    int _jspx_eval_utc_resource_0 = _jspx_th_utc_resource_0.doStartTag();
                    if (_jspx_eval_utc_resource_0 == BodyTag.EVAL_BODY_TAG)
                        throw new JspTagException("Since tag handler class com.ibm.etools.utc.ResourceTag does not implement BodyTag, it can't return BodyTag.EVAL_BODY_TAG");
                    if (_jspx_eval_utc_resource_0 != Tag.SKIP_BODY) {
                        do {
                        // end
                        // ##DEBUG## "e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 22,9-"e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 22,56
                        } while (false);
                    }
                    if (_jspx_th_utc_resource_0.doEndTag() == Tag.SKIP_PAGE)
                        return;
                } finally {
                    _jspx_th_utc_resource_0.release();
                }
            // end
            // ##DEBUG## "e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 22,56-"e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 27,0
                out.print(_jspx_html_data[4]);
            // end
            // ##DEBUG## ##SCRIPTLET## "e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 27,2-"e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 27,37
                 referenceView.cacheTree(request); 
            // end
            // ##DEBUG## "e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 27,39-"e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 28,0
                out.print(_jspx_html_data[5]);
            // end
            // ##DEBUG## "e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 28,3-"e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 28,113
                out.print( Tree.getTableTree(request, "_parent", "/html/ejbPage/referencePage.jsp", referenceView.getTreeRoot(), false) );
            // end
            // ##DEBUG## "e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 28,115-"e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 30,0
                out.print(_jspx_html_data[6]);
            // end
            // ##DEBUG## ##SCRIPTLET## "e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 30,2-"e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 30,50
                 if (referenceView.getAddedObjects() != null) { 
            // end
            // ##DEBUG## "e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 30,52-"e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 32,55
                out.print(_jspx_html_data[7]);
            // end
            // ##DEBUG## "e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 32,55-"e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 32,106
                /* ----  utc:resource ---- */
                com.ibm.etools.utc.ResourceTag _jspx_th_utc_resource_1 = new com.ibm.etools.utc.ResourceTag();
                _jspx_th_utc_resource_1.setPageContext(pageContext);
                _jspx_th_utc_resource_1.setParent(null);
                _jspx_th_utc_resource_1.setKey("ejbPageReferenceViewLastAdded");
                try {
                    int _jspx_eval_utc_resource_1 = _jspx_th_utc_resource_1.doStartTag();
                    if (_jspx_eval_utc_resource_1 == BodyTag.EVAL_BODY_TAG)
                        throw new JspTagException("Since tag handler class com.ibm.etools.utc.ResourceTag does not implement BodyTag, it can't return BodyTag.EVAL_BODY_TAG");
                    if (_jspx_eval_utc_resource_1 != Tag.SKIP_BODY) {
                        do {
                        // end
                        // ##DEBUG## "e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 32,55-"e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 32,106
                        } while (false);
                    }
                    if (_jspx_th_utc_resource_1.doEndTag() == Tag.SKIP_PAGE)
                        return;
                } finally {
                    _jspx_th_utc_resource_1.release();
                }
            // end
            // ##DEBUG## "e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 32,106-"e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 33,4
                out.print(_jspx_html_data[8]);
            // end
            // ##DEBUG## ##SCRIPTLET## "e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 33,6-"e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 40,40
                 ClassModel[] models = referenceView.getAddedObjects();
                       int size = models.length;
                       boolean dots = false;
                       if (size > 10) {
                         size = 10;
                         dots = true;
                       }
                       for (int i = 0; i < size; i++) { 
            // end
            // ##DEBUG## "e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 40,42-"e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 41,63
                out.print(_jspx_html_data[9]);
            // end
            // ##DEBUG## "e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 41,66-"e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 41,116
                out.print( JspUtil.convertStringToHTML(models[i].getName()) );
            // end
            // ##DEBUG## "e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 41,118-"e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 42,4
                out.print(_jspx_html_data[10]);
            // end
            // ##DEBUG## ##SCRIPTLET## "e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 42,6-"e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 42,9
                 } 
            // end
            // ##DEBUG## "e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 42,11-"e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 43,8
                out.print(_jspx_html_data[11]);
            // end
            // ##DEBUG## ##SCRIPTLET## "e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 43,10-"e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 43,23
                 if (dots) { 
            // end
            // ##DEBUG## "e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 43,25-"e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 43,80
                out.print(_jspx_html_data[12]);
            // end
            // ##DEBUG## ##SCRIPTLET## "e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 43,82-"e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 43,85
                 } 
            // end
            // ##DEBUG## "e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 43,87-"e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 44,2
                out.print(_jspx_html_data[13]);
            // end
            // ##DEBUG## ##SCRIPTLET## "e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 44,4-"e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 44,7
                 } 
            // end
            // ##DEBUG## "e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 44,9-"e:\\WSAD50EAWorkspaces\\pmr07751\\.metadata\\.plugins\\com.ibm.etools.server.core\\tmp1\\IBMUTC\\IBMUTC.ear\\UTC.war\\html\\ejbPage\\reference.jsp" 47,7
                out.print(_jspx_html_data[14]);
            // end

        } catch (Exception ex) {
            if ((out != null) && (out.getBufferSize() != 0)){
                out.clearBuffer();
            }
            pageContext.handlePageException(ex);
        } catch ( Throwable t) {
            if ((out != null) && (out.getBufferSize() != 0)){
                out.clearBuffer();
            }
            pageContext.handlePageException(new Exception(t.getMessage()));
        } finally {
            if ( out != null){
                out.flush();
            }
            _jspxFactory.releasePageContext(pageContext);
        }
    }
    private void setBooleanIgnoreException() {
        if (checkedAttributeIgnoreException) return;
        
        checkedAttributeIgnoreException = true;
        String initParamIgnoreException =(String)(getServletConfig().getInitParameter("jsp.repeatTag.ignoreException"));
        if ((initParamIgnoreException != null) && (initParamIgnoreException.toLowerCase().equals("true"))){ 
            throwException = false;
        }
    }
}
