public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { 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 { 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("\r\n\r\n"); final DisplayState theDisplayState = (DisplayState) request.getAttribute(MasterServlet.STATE); final Frame frame = (Frame) request.getAttribute(AbstractChip.FRAME_KEY); /* //to be definitive NOT serializable InputStream noser = (InputStream)session.getAttribute( "NOT_SERIALIZABLE"); if( noser==null ) { session.setAttribute( "NOT_SERIALIZABLE", new ByteArrayInputStream( new byte[0] )); } */ out.write('\r'); out.write('\n'); final AbstractItemTreeNodeChip theChip = (AbstractItemTreeNodeChip) request.getAttribute(AbstractChip.CHIP_KEY); out.write("\r\n<input type=\"hidden\" name=\""); out.print(theChip.getEventID(AbstractTreeNodeChip.EDIT)); out.write("\" value=\""); out.print(AbstractChip.FALSE); out.write( "\" />\r\n<table class=\"abstractItemTreeNodeChip\" cellspacing=\"0\" cellpadding=\"0\">\r\n\t<tr>\r\n\t\t<td class=\"aitncIcon\">\r\n\t\t\t<div onclick=\"document.editorForm.elements['"); out.print(theChip.getEventID(AbstractTreeNodeChip.EDIT)); out.write("'].value='"); out.print(AbstractChip.TRUE); out.write("';setScrollAndSubmit();\">\r\n\t\t\t\t<img src=\""); out.print(theChip.getIcon()); out.write( "\" border=\"0\">\r\n\t\t\t</div>\r\n\t\t</td>\r\n\t\t<td class=\"aitncName\">\r\n\t\t\t<div onclick=\"document.editorForm.elements['"); out.print(theChip.getEventID(AbstractTreeNodeChip.EDIT)); out.write("'].value='"); out.print(AbstractChip.TRUE); out.write("';setScrollAndSubmit();\">\r\n\t\t\t\t"); out.print(theChip.getName()); out.write("\r\n\t\t\t</div>\r\n\t\t</td>\r\n\t</tr>\r\n\t"); if (theChip.isExpanded()) { for (final Iterator it = theChip.getAllChildren().iterator(); it.hasNext(); ) { final AbstractTreeNodeChip child = (AbstractTreeNodeChip) it.next(); out.write("\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td class=\"aitncTreeIMG\" background=\""); out.print(it.hasNext() ? "images/vert.gif" : ""); out.write("\">\r\n\t\t\t\t\t\t\t"); if (child.hasChildren()) { if (child.isExpanded()) { out.write("<input type=\"hidden\" name=\""); out.print(child.getEventID(AbstractTreeNodeChip.COLLAPSE)); out.write("\" value=\""); out.print(AbstractChip.FALSE); out.write("\" /><div onclick=\"document.editorForm.elements['"); out.print(child.getEventID(AbstractTreeNodeChip.COLLAPSE)); out.write("'].value='"); out.print(AbstractChip.TRUE); out.write("';setScrollAndSubmit();\">"); if (it.hasNext()) { out.write("<img src=\"images/minus.gif\"></td>"); } else { out.write("<img src=\"images/minusend.gif\"></td>"); } out.write("</div>"); } else { out.write("<input type=\"hidden\" name=\""); out.print(child.getEventID(AbstractTreeNodeChip.EXPAND)); out.write("\" value=\""); out.print(AbstractChip.FALSE); out.write("\" /><div onclick=\"document.editorForm.elements['"); out.print(child.getEventID(AbstractTreeNodeChip.EXPAND)); out.write("'].value='"); out.print(AbstractChip.TRUE); out.write("';setScrollAndSubmit();\">"); if (it.hasNext()) { out.write("<img src=\"images/plus.gif\"></td>"); } else { out.write("<img src=\"images/plusend.gif\"></td>"); } out.write("</div>"); } } else { if (it.hasNext()) { out.write("<img src=\"images/horiz.gif\"></td>"); } else { out.write("<img src=\"images/end.gif\"></td>"); } } out.write("\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t<td class=\"aitncContext\">"); child.render(pageContext); out.write("</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t"); } } out.write("\r\n</table>\r\n"); } catch (Throwable t) { if (!(t instanceof SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { out.clearBuffer(); } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else log(t.getMessage(), t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
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"); 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\r\n"); final DisplayState theDisplayState = (DisplayState) request.getAttribute(MasterServlet.STATE); final Frame frame = (Frame) request.getAttribute(AbstractChip.FRAME_KEY); /* //to be definitive NOT serializable InputStream noser = (InputStream)session.getAttribute( "NOT_SERIALIZABLE"); if( noser==null ) { session.setAttribute( "NOT_SERIALIZABLE", new ByteArrayInputStream( new byte[0] )); } */ out.write('\r'); out.write('\n'); GenericTRChip theChip = (GenericTRChip) request.getAttribute(AbstractChip.CHIP_KEY); out.write("\r\n<tr "); out.print((theChip.getHeight() != null ? " height=\"" + theChip.getHeight() + "\"" : "")); out.print((theChip.getWidth() != null ? " width=\"" + theChip.getWidth() + "\"" : "")); out.write('>'); out.write('\r'); out.write('\n'); for (final Iterator it = theChip.getChildren().iterator(); it.hasNext(); ) { final GenericTDChip chip = (GenericTDChip) it.next(); chip.render(pageContext); } out.write("\r\n</tr>\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); } }