Example usage for javax.servlet.jsp JspWriter print

List of usage examples for javax.servlet.jsp JspWriter print

Introduction

In this page you can find the example usage for javax.servlet.jsp JspWriter print.

Prototype


abstract public void print(Object obj) throws IOException;

Source Link

Document

Print an object.

Usage

From source file:org.apache.hadoop.hdfs.server.namenode.JspHelper.java

public void streamBlockInAscii(InetSocketAddress addr, long blockId, Token<BlockTokenIdentifier> accessToken,
        long genStamp, long blockSize, long offsetIntoBlock, long chunkSizeToView, JspWriter out,
        Configuration conf) throws IOException {
    if (chunkSizeToView == 0)
        return;/*from  w w  w  . jav a2  s. c  om*/
    Socket s = new Socket();
    s.connect(addr, HdfsConstants.READ_TIMEOUT);
    s.setSoTimeout(HdfsConstants.READ_TIMEOUT);

    long amtToRead = Math.min(chunkSizeToView, blockSize - offsetIntoBlock);

    // Use the block name for file name. 
    DFSClient.BlockReader blockReader = DFSClient.BlockReader.newBlockReader(s, addr.toString() + ":" + blockId,
            blockId, accessToken, genStamp, offsetIntoBlock, amtToRead,
            conf.getInt("io.file.buffer.size", 4096));

    byte[] buf = new byte[(int) amtToRead];
    int readOffset = 0;
    int retries = 2;
    while (amtToRead > 0) {
        int numRead;
        try {
            numRead = blockReader.readAll(buf, readOffset, (int) amtToRead);
        } catch (IOException e) {
            retries--;
            if (retries == 0)
                throw new IOException("Could not read data from datanode");
            continue;
        }
        amtToRead -= numRead;
        readOffset += numRead;
    }
    blockReader = null;
    s.close();
    out.print(HtmlQuoting.quoteHtmlChars(new String(buf)));
}

From source file:com.redhat.rhn.frontend.taglibs.ColumnTag.java

/**
 * Displays the opening of the TD tag and prepares it for
 * displaying the body contents.//from   w  ww.  j  av a 2s.  co m
 * @param out JspWriter to write to.
 * @param parent Containing JspTag.
 * @throws IOException if an error occurs writing to the JspWriter.
 */
protected void renderData(JspWriter out, ListDisplayTag parent) throws IOException {
    setupAttribute(td, "width", getWidth());

    if (getNowrap() != null && getNowrap().equals("true")) {
        setupAttribute(td, "nowrap", "nowrap");
    }

    setupAttribute(td, "style", getStyle());
    setupAttribute(td, "colspan", getColspan());

    if (getColspan() != null) {
        parent.setColumnCount(parent.getColumnCount() + Integer.parseInt(getColspan()) - 1);
    }

    // Only one column
    if (parent.getNumberOfColumns() == 1) {
        setupAttribute(td, "class", "first-column last-column");
    }
    // Are we the first column?
    else if (parent.getColumnCount() == 0) {
        setupAttribute(td, "class", "first-column");
    }
    // Are we the last column?
    else if (parent.getColumnCount() == parent.getNumberOfColumns() - 1) {
        setupAttribute(td, "class", "last-column");
    }
    // Are we a middle column?
    else {
        setupAttribute(td, "class", getCssClass());
    }

    parent.incrColumnCount();

    out.print(td.renderOpenTag());

    if (showUrl()) {
        setupAttribute(href, "href", getUrl());
        out.print(href.renderOpenTag());
    }
}

From source file:org.opencms.setup.CmsUpdateBean.java

/**
 * Generates the output for step 1 of the setup wizard.<p>
 * // w w w .  ja  va2s.c  o m
 * @param out the JSP print stream
 * @throws IOException in case errors occur while writing to "out"
 */
public void prepareUpdateStep1bOutput(JspWriter out) throws IOException {

    m_oldLoggingDBOffset = m_newLoggingDBOffset;
    m_newLoggingDBOffset = m_dbUpdateThread.getLoggingThread().getMessages().size();
    if (isInitialized()) {
        for (int i = m_oldLoggingDBOffset; i < m_newLoggingDBOffset; i++) {
            String str = m_dbUpdateThread.getLoggingThread().getMessages().get(i).toString();
            str = CmsEncoder.escapeWBlanks(str, CmsEncoder.ENCODING_UTF_8);
            out.println("output[" + (i - m_oldLoggingDBOffset) + "] = \"" + str + "\";");
        }
    } else {
        out.println("output[0] = 'ERROR';");
    }

    boolean threadFinished = m_dbUpdateThread.isFinished();
    boolean allWritten = m_oldLoggingDBOffset >= m_dbUpdateThread.getLoggingThread().getMessages().size();

    out.println("function initThread() {");
    if (isInitialized()) {
        out.print("send();");
        if (threadFinished && allWritten) {
            out.println("setTimeout('top.display.finish()', 1000);");
        } else {
            int timeout = 5000;
            if (getUpdateDBThread().getLoggingThread().getMessages().size() < 20) {
                timeout = 2000;
            }
            out.println("setTimeout('location.reload()', " + timeout + ");");
        }
    }
    out.println("}");
}

From source file:org.disit.servicemap.api.ServiceMapApi.java

public void queryLocation(JspWriter out, RepositoryConnection con, String lat, String lng) throws Exception {
    JSONObject obj = queryLocation(con, lat, lng);
    if (obj != null)
        out.print(obj.toString());
    else//  w w w  .j av  a  2s .co  m
        out.println("{}");
}

From source file:gov.nih.nci.ncicb.cadsr.common.jsp.tag.handler.RefDocAltQuestionTextDisplay.java

public int doStartTag() throws javax.servlet.jsp.JspException {
    HttpServletRequest req;/* www . ja v  a 2s. co  m*/
    JspWriter out;
    try {
        req = (HttpServletRequest) pageContext.getRequest();
        out = pageContext.getOut();
        Question currQuestion = (Question) pageContext.getAttribute(questionBeanId);
        String longName = currQuestion.getLongName();
        DataElement de = currQuestion.getDataElement();

        if (de != null) {
            List refDocs = de.getRefereceDocs();
            if (refDocs != null && !refDocs.isEmpty()) {
                List<ReferenceDocument> matchingDocs = ReferenceDocUtil.getReferenceDocsByType(refDocs,
                        refDocType);
                if (!matchingDocs.isEmpty()) {

                    if (matchingDocs.size() < 2) {
                        // Generate Hyper link
                        String itemIdentifierPrefix = "questionOptionHyperLink" + refDocType;
                        ReferenceDocument currDoc = (ReferenceDocument) matchingDocs.get(0);
                        String displayString = currDoc.getDocText();
                        if (displayString != null && displayString.length() > 0) {
                            displayString = StringUtils.strReplace(displayString, "'", "\\'");
                            displayString = StringUtils.strReplace(displayString, "\"", "&quot;");
                        }
                        StringBuffer linkStr = new StringBuffer(
                                "<a href=\"javascript:" + hyperLinkJSFunctionName + "('" + htmlObjectRef + "','"
                                        + displayString + "')\">");
                        linkStr.append(currDoc.getDocText());
                        linkStr.append("</a>");
                        //out.print(script);
                        out.print(linkStr.toString());
                    } else {
                        //Generate Multi select box
                        String itemIdentifier = "questionOptions" + questionIndex + refDocType;
                        StringBuffer buffer = new StringBuffer("<select  name=\"" + itemIdentifier + "\" id=\""
                                + itemIdentifier + "\" size=\"" + selectBoxSize + "\" class=\""
                                + selectBoxClassName + "\"" + "onDblClick=\"" + selectBoxJSFunctionName + "('"
                                + itemIdentifier + "','" + htmlObjectRef + "')\">");
                        for (ReferenceDocument currDoc : matchingDocs) {
                            String displayString = (currDoc).getDocText();
                            if (displayString != null && displayString.length() > 0) {
                                displayString = StringUtils.strReplace(displayString, "\"", "&quot;");
                            }
                            buffer.append("<option value=\"" + displayString + "\">" + (currDoc).getDocText()
                                    + "</option>");
                        }
                        buffer.append("</select>");
                        out.print(buffer.toString());
                    }
                }
            }
        }

    } catch (Exception ioe) {
        throw new JspException("I/O Error : " + ioe.getMessage());
    } //end try/catch
    return Tag.SKIP_BODY;

}

From source file:org.opencms.workplace.galleries.A_CmsAjaxGallery.java

/**
 * Creates a JSON object with the information found on the given gallery URL.<p>
 * /*  w  w  w .  j  a va2 s . c o  m*/
 * @param galleryUrl the given gallery URL
 */
protected void buildJsonGalleryItem(String galleryUrl) {

    try {
        JspWriter out = getJsp().getJspContext().getOut();
        if (getCms().existsResource(galleryUrl)) {
            JSONObject jsonObj = new JSONObject();
            try {
                CmsResource res = getCms().readResource(galleryUrl);
                String path = getCms().getSitePath(res);
                // read the gallery title
                String title = getCms().readPropertyObject(res, CmsPropertyDefinition.PROPERTY_TITLE, false)
                        .getValue("");
                try {
                    // 1: gallery title
                    jsonObj.put("title", title);
                    // 2: gallery path
                    jsonObj.put("path", path);
                    // 3: active flag
                    jsonObj.put("active", true);
                    out.print(jsonObj);
                } catch (JSONException e) {
                    if (LOG.isErrorEnabled()) {
                        LOG.error(e.getLocalizedMessage(), e);
                    }
                }
            } catch (CmsException e) {
                // error reading title property
                if (LOG.isErrorEnabled()) {
                    LOG.error(e.getLocalizedMessage(), e);
                }
            }
        } else {
            out.print(RETURNVALUE_NONE);
        }
    } catch (IOException e) {
        if (LOG.isErrorEnabled()) {
            LOG.error(e.getLocalizedMessage(), e);
        }
    }
}

From source file:org.apache.jsp.decorators.general_002dbody_002dpre_jsp.java

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 {/*from  w  w  w .  ja v a 2  s.  c o  m*/
        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");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("<body id=\"jira\" class=\"aui-layout aui-theme-default ");
        out.print(JspDecoratorUtils.getBody().getBodyTagProperty("class"));
        out.write('"');
        out.write(' ');
        out.print(ComponentAccessor.getComponent(ProductVersionDataBeanProvider.class).get()
                .getBodyHtmlAttributes());
        out.write(">\n");
        out.write("<div id=\"page\">\n");
        out.write("    <header id=\"header\" role=\"banner\">\n");
        out.write("        ");
        out.write("\n");
        out.write("    ");
        out.write("\n");
        out.write("        ");
        out.write("\n");
        out.write("            ");
        out.write("\n");
        out.write("        ");
        out.write("\n");
        out.write("    ");
        out.write('\n');
        out.write('\n');
        out.write('\n');
        out.write('\n');
        out.write('\n');
        out.write("\n");
        out.write("<script>\n");
        out.write("    AJS.$(function () {\n");
        out.write("        var licenseBanner = require(\"jira/license-banner\");\n");
        out.write("        licenseBanner.showLicenseBanner(\"");
        out.print(StringEscapeUtils.escapeEcmaScript(
                ComponentAccessor.getComponentOfType(LicenseBannerHelper.class).getExpiryBanner()));
        out.write("\");\n");
        out.write("        licenseBanner.showLicenseFlag(\"");
        out.print(StringEscapeUtils.escapeEcmaScript(
                ComponentAccessor.getComponentOfType(LicenseBannerHelper.class).getMaintenanceFlag()));
        out.write("\");\n");
        out.write("    });\n");
        out.write("</script>\n");
        out.write('\n');
        out.write('\n');
        out.write('\n');
        out.write('\n');

        final User loggedInUser = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser();
        if (loggedInUser != null) {
            final InternalWebSudoManager websudoManager = ComponentAccessor
                    .getComponent(InternalWebSudoManager.class);

            if (websudoManager.isEnabled() && websudoManager.hasValidSession(session)) {
                request.setAttribute("helpUtil", HelpUtil.getInstance());

                out.write("\n");
                out.write("<div class=\"aui-message aui-message-warning\" id=\"websudo-banner\">\n");

                if (websudoManager.isWebSudoRequest(request)) {

                    out.write("\n");
                    out.write("    <p>\n");
                    out.write("        ");
                    if (_jspx_meth_ww_005ftext_005f0(_jspx_page_context))
                        return;
                    out.write("\n");
                    out.write("    </p>\n");

                } else {

                    out.write("\n");
                    out.write("    <p>\n");
                    out.write("        ");
                    if (_jspx_meth_ww_005ftext_005f1(_jspx_page_context))
                        return;
                    out.write("\n");
                    out.write("    </p>\n");

                }

                out.write("\n");
                out.write("</div>\n");

            }
        }

        out.write('\n');
        out.write('\n');
        out.write("\n");
        out.write("        ");
        out.write('\n');
        if (_jspx_meth_ww_005fbean_005f0(_jspx_page_context))
            return;
        out.write('\n');
        out.write('\n');

        final UnsupportedBrowserManager browserManager = ComponentAccessor
                .getComponent(UnsupportedBrowserManager.class);
        if (browserManager.isCheckEnabled() && !browserManager.isHandledCookiePresent(request)
                && browserManager.isUnsupportedBrowser(request)) {
            request.setAttribute("messageKey", browserManager.getMessageKey(request));

            out.write('\n');
            if (_jspx_meth_aui_005fcomponent_005f0(_jspx_page_context))
                return;
            out.write('\n');
        }
        out.write("\n");
        out.write("        ");
        out.write('\n');

        //
        // IDEA gives you a warning below because it cant resolve JspWriter.  I don't know why but its harmless
        //
        ComponentAccessor.getComponent(HeaderFooterRendering.class).includeTopNavigation(out, request,
                JspDecoratorUtils.getBody());

        out.write("\n");
        out.write("    </header>\n");
        out.write("    ");
        out.write('\n');
        out.write('\n');

        AnnouncementBanner banner = ComponentAccessor.getComponentOfType(AnnouncementBanner.class);
        if (banner.isDisplay()) {

            out.write("\n");
            out.write("<div id=\"announcement-banner\" class=\"alertHeader\">\n");
            out.write("    ");
            out.print(banner.getViewHtml());
            out.write("\n");
            out.write("</div>\n");

        }

        out.write('\n');
        out.write("\n");
        out.write("    <section id=\"content\" role=\"main\">\n");
    } catch (java.lang.Throwable t) {
        if (!(t instanceof javax.servlet.jsp.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
                throw new ServletException(t);
        }
    } finally {
        _jspxFactory.releasePageContext(_jspx_page_context);
    }
}

From source file:org.opencms.setup.CmsUpdateBean.java

/**
 * Generates the output for the update wizard.<p>
 * //  w  w  w .  ja va  2s.  c o  m
 * @param out the JSP print stream
 * 
 * @throws IOException in case errors occur while writing to "out"
 */
public void prepareUpdateStep5bOutput(JspWriter out) throws IOException {

    if ((m_workplaceUpdateThread == null) || (m_workplaceUpdateThread.getLoggingThread() == null)) {
        return;
    }
    m_oldLoggingOffset = m_newLoggingOffset;
    m_newLoggingOffset = m_workplaceUpdateThread.getLoggingThread().getMessages().size();
    if (isInitialized()) {
        for (int i = m_oldLoggingOffset; i < m_newLoggingOffset; i++) {
            String str = m_workplaceUpdateThread.getLoggingThread().getMessages().get(i).toString();
            str = CmsEncoder.escapeWBlanks(str, CmsEncoder.ENCODING_UTF_8);
            out.println("output[" + (i - m_oldLoggingOffset) + "] = \"" + str + "\";");
        }
    } else {
        out.println("output[0] = 'ERROR';");
    }

    boolean threadFinished = m_workplaceUpdateThread.isFinished();
    boolean allWritten = m_oldLoggingOffset >= m_workplaceUpdateThread.getLoggingThread().getMessages().size();

    out.println("function initThread() {");
    if (isInitialized()) {
        out.print("send();");
        if (threadFinished && allWritten) {
            out.println("setTimeout('top.display.finish()', 500);");
        } else {
            int timeout = 5000;
            if (getWorkplaceUpdateThread().getLoggingThread().getMessages().size() < 20) {
                timeout = 1000;
            }
            out.println("setTimeout('location.reload()', " + timeout + ");");
        }
    }
    out.println("}");
}

From source file:com.redhat.rhn.frontend.taglibs.ColumnTag.java

/**
 * Displays the opening of the TD tag and prepares it for
 * displaying the body contents./* w  w w  .j a  va 2s . co m*/
 * @param out JspWriter to write to.
 * @param parent Containing JspTag.
 * @throws IOException if an error occurs writing to the JspWriter.
 */
protected void renderData(JspWriter out, UnpagedListDisplayTag parent) throws IOException {
    String nodeIdString = parent.getNodeIdString();

    // Deal with structural markup before we get to this <td>
    if (parent.getColumnCount() == 0 && parent.getCurrRow() == 0) {
        out.println("</thead><tbody>");

    }
    setupAttribute(td, "width", getWidth());
    setupAttribute(td, "colspan", getColspan());
    if (getNowrap() != null && getNowrap().equals("true")) {
        setupAttribute(td, "nowrap", "nowrap");
    }

    // Only one column
    if (parent.getNumberOfColumns() == 1) {
        setupAttribute(td, "class", "first-column last-column");
    }
    // Are we the first column?
    else if (parent.getColumnCount() == 0) {
        setupAttribute(td, "class", "first-column");
    }
    // Are we the last column?
    else if (parent.getColumnCount() == parent.getNumberOfColumns() - 1) {
        setupAttribute(td, "class", "last-column");
    }
    // Are we a middle column?
    else {
        setupAttribute(td, "class", getCssClass());
    }

    parent.incrColumnCount();

    if (parent.getType().equals("treeview") && parent.isChild(nodeIdString)) {
        setupAttribute(td, "style", getStyle() + "display: none;");
    } else {
        setupAttribute(td, "style", getStyle());
    }

    out.print(td.renderOpenTag());

    if (parent.getType().equals("treeview") && parent.isParent(nodeIdString) && parent.getColumnCount() == 1) {
        out.print("<a onclick=\"toggleRowVisibility('" + parent.createIdString(nodeIdString) + "');\" "
                + "style=\"cursor: pointer;\">" + "<img name=\"" + parent.createIdString(nodeIdString)
                + "-image\" src=\"/img/list-expand.gif\" alt=\""
                + LocalizationService.getInstance().getMessage("channels.parentchannel.alt") + "\"/></a>");
        parent.setCurrRow(parent.getCurrRow() + 1);
    }

    if (showUrl()) {
        setupAttribute(href, "href", getUrl());
        out.print(href.renderOpenTag());
    }
}

From source file:org.apache.jsp.view.ask_jsp.java

public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    PageContext pageContext = null;/*w w  w.j  a  v  a 2s.c om*/
    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; 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');
        out.write('\n');
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");

        String contextPath = (String) request.getContextPath();
        pageContext.setAttribute("contextPath", contextPath);

        out.write("\r\n");
        out.write("\r\n");
        out.write(" ");
        out.write("\r\n");
        out.write(
                "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n");
        out.write("\r\n");
        out.write("<html> \r\n");
        out.write("<head> \r\n");
        out.write("    <title>ask - youxifan</title> \r\n");
        out.write(
                "    <script type=\"text/javascript\" src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js\"></script>\r\n");
        out.write(
                "    <script type=\"text/javascript\" src=\"http://cdn.sstatic.net/js/stub.js?v=c014461b9109\"></script>\r\n");
        out.write("    <link rel=\"stylesheet\" type=\"text/css\" href=\"");
        out.print(contextPath);
        out.write("/css/all.css\">\r\n");
        out.write("\r\n");
        out.write("</head>\r\n");
        out.write("<body class=\"questions-page\">\r\n");
        out.write("    <noscript><div id=\"noscript-padding\"></div></noscript>\r\n");
        out.write("    <div id=\"notify-container\"></div>\r\n");
        out.write("    <div id=\"overlay-header\"></div>\r\n");
        out.write("    <div id=\"custom-header\"></div>\r\n");
        out.write("\r\n");
        out.write("    <div class=\"container\">\r\n");
        out.write("        ");
        out.write("\r\n");
        out.write("\t\r\n");
        out.write("\t\r\n");
        out.write("\t\t<div id=\"header\">\r\n");
        out.write("            <div id=\"topbar\">  \r\n");
        out.write("            </div>  \r\n");
        out.write("            <div id=\"hmenus\">\r\n");
        out.write("                <div class=\"nav mainnavs\">\r\n");
        out.write("                    <ul>\r\n");
        out.write("                        <li class=\"youarehere\"><a id=\"nav-questions\" href=\"");
        out.print(contextPath);
        out.write("/s/doc\"></a></li>\r\n");
        out.write("                        <li><a id=\"nav-tags\" href=\"/tags\">Tags</a></li>\r\n");
        out.write("                        <li><a id=\"nav-users\" href=\"/users\">Users</a></li>\r\n");
        out.write("                        <li><a id=\"nav-badges\" href=\"/badges\">Badges</a></li>\r\n");
        out.write(
                "                        <li><a id=\"nav-unanswered\" href=\"/unanswered\">Unanswered</a></li>\r\n");
        out.write("                    </ul>\r\n");
        out.write("                </div>\r\n");
        out.write("                \r\n");
        out.write("            </div>\r\n");
        out.write("        </div>");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\t\t<div id=\"content\">\r\n");
        out.write("\t\t\t\r\n");
        out.write("\t        <div id=\"mainbar\" class=\"ask-mainbar\">  \r\n");
        out.write("\t        \t\r\n");
        out.write("\t        \t<div class=\"subheader\">\r\n");
        out.write("\t\t\t\t\t<h1>??</h1>\r\n");
        out.write("\t\t\t\t</div> \r\n");
        out.write("\t\t\t\t\r\n");
        out.write("\t    \t\t<form id=\"post-form\" class=\"post-form\" action=\"");
        out.print(contextPath);
        out.write("/s/doc\" method=\"post\">\r\n");
        out.write("\t        \t\t<input type=\"hidden\" name=\"doctype\" value=\"1\"  />\r\n");
        out.write("\t        \t\t<label  ></label><br/>\r\n");
        out.write(
                "\t        \t\t<input id=\"title\" name=\"title\" type=\"text\" maxlength=\"300\" tabindex=\"100\" class=\"ask-title-field\" value=\"\"><br/>\r\n");
        out.write("\t        \t\t<label  ></label><br/>\r\n");
        out.write(
                "\t        \t\t<textarea id=\"wmd-input\" class=\"wmd-input\" name=\"post-text\" cols=\"92\" rows=\"15\" tabindex=\"101\">\r\n");
        out.write("\t\t\t\t\t</textarea>\r\n");
        out.write("\t        \t\t\r\n");
        out.write("\t        \t\t\r\n");
        out.write("\t        \t\t<div class=\"form-item\">\r\n");
        out.write("\t        \t\t\t<label>Tags</label>  \r\n");
        out.write(
                "\t        \t\t\t<input id=\"tagnames\" name=\"tagnames\" type=\"text\" size=\"60\" value=\"\" tabindex=\"103\">\r\n");
        out.write(
                "\t        \t\t\t<span class=\"edit-field-overlay\">at least one tag such as (c++ sql-server c), max 5 tags</span>\r\n");
        out.write("\t        \t\t</div>\r\n");
        out.write("\t        \t\t\r\n");
        out.write("\t        \t\t<div class=\"form-submit cbt\">\r\n");
        out.write(
                "\t        \t\t<input id=\"submit-button\" type=\"submit\" value=\"??\" tabindex=\"120\">\r\n");
        out.write("\t        \t\t</div>\r\n");
        out.write("\t        \t</form>\r\n");
        out.write("\t        </div> \r\n");
        out.write("\t        \r\n");
        out.write("\r\n");
        out.write("\t        \r\n");
        out.write("\t\t\t<div id=\"sidebar\" class=\"ask-sidebar\">\r\n");
        out.write("\t\t\t\t<div class=\"module\" id=\"questions-count\">\r\n");
        out.write("\t\t\t\t\t<div class=\"summarycount al\">305</div>\r\n");
        out.write("\t\t\t\t\t<p>questions</p>\r\n");
        out.write("\t\t\t\t</div>   \r\n");
        out.write("\t\t\t\t<div class=\"everyonelovesstackoverflow\" id=\"adzerk2\">\r\n");
        out.write("\t\t\t\t</div> \r\n");
        out.write("\r\n");
        out.write("\t\t\t\t<div class=\"module\" id=\"related-tags\">\r\n");
        out.write("\t\t\t\t\t<h4 id=\"h-related-tags\">Related Tags</h4>\r\n");
        out.write(
                "\t\t\t\t\t<a href=\"/questions/tagged/android\" class=\"post-tag\" title=\"show questions tagged 'android'\" rel=\"tag\"><img src=\"http://cdn.sstatic.net/img/hosted/tKsDb.png\" height=\"16\" width=\"18\" alt=\"\" class=\"sponsor-tag-img\">android</a><span class=\"item-multiplier\"><span class=\"item-multiplier-x\">&times;</span>&nbsp;<span class=\"item-multiplier-count\">42</span></span>            <br>\r\n");
        out.write("\t\t\t\t\r\n");
        out.write(
                "\t\t\t\t\t<a href=\"/questions/tagged/c%23\" class=\"post-tag\" title=\"show questions tagged 'c#'\" rel=\"tag\">c#</a><span class=\"item-multiplier\"><span class=\"item-multiplier-x\">&times;</span>&nbsp;<span class=\"item-multiplier-count\">27</span></span>            <br>\r\n");
        out.write("\t\t\t\t\r\n");
        out.write(
                "\t\t\t\t\t<a href=\"/questions/tagged/javascript\" class=\"post-tag\" title=\"show questions tagged 'javascript'\" rel=\"tag\">javascript</a><span class=\"item-multiplier\"><span class=\"item-multiplier-x\">&times;</span>&nbsp;<span class=\"item-multiplier-count\">25</span></span>            <br>\r\n");
        out.write("\t\t\t\t\r\n");
        out.write(
                "\t\t\t\t\t<a href=\"/questions/tagged/java\" class=\"post-tag\" title=\"show questions tagged 'java'\" rel=\"tag\">java</a><span class=\"item-multiplier\"><span class=\"item-multiplier-x\">&times;</span>&nbsp;<span class=\"item-multiplier-count\">24</span></span>            <br> \r\n");
        out.write("\t\t\t\t</div>\r\n");
        out.write("\t\t\t</div>\r\n");
        out.write("\r\n");
        out.write("\t\t</div>\r\n");
        out.write("    </div>\r\n");
        out.write("    <div id=\"footer\">\r\n");
        out.write("        <div class=\"footerwrap\">\r\n");
        out.write("            <div id=\"footer-menu\">\r\n");
        out.write("                <a href=\"/about\">about</a> |\r\n");
        out.write(
                "                <a href=\"/faq\">faq</a> | <a href=\"http://blog.stackexchange.com?blt=1\">blog</a> |\r\n");
        out.write("                    <a href=\"http://chat.stackoverflow.com\">chat</a> |\r\n");
        out.write("                <a href=\"http://data.stackexchange.com\">data</a> |\r\n");
        out.write(
                "                <a href=\"http://blog.stackoverflow.com/category/podcasts/\">podcast</a> |\r\n");
        out.write("                <a href=\"http://shop.stackexchange.com/\">shop</a> |\r\n");
        out.write("                <a href=\"http://stackexchange.com/legal\">legal</a>\r\n");
        out.write("                <div id=\"footer-sites\">\r\n");
        out.write("                    \r\n");
        out.write(
                "                        <span style=\"color:#FE7A15;font-size:140%\">&#9632;</span>&nbsp;<a href=\"http://stackoverflow.com\">stackoverflow.com</a>&nbsp; \r\n");
        out.write(
                "                        <span style=\"color:#FE7A15;font-size:140%\">&#9632;</span>&nbsp;<a href=\"http://stackapps.com\">api/apps</a>&nbsp; \r\n");
        out.write(
                "                        <span style=\"color:#FE7A15;font-size:140%\">&#9632;</span>&nbsp;<a href=\"http://careers.stackoverflow.com\">careers</a>&nbsp; \r\n");
        out.write(
                "                        <span style=\"color:#E8272C;font-size:140%\">&#9632;</span>&nbsp;<a href=\"http://serverfault.com\">serverfault.com</a>&nbsp; \r\n");
        out.write(
                "                        <span style=\"color:#00AFEF;font-size:140%\">&#9632;</span>&nbsp;<a href=\"http://superuser.com\">superuser.com</a>&nbsp; \r\n");
        out.write(
                "                        <span style=\"color:#969696;font-size:140%\">&#9632;</span>&nbsp;<a href=\"http://meta.stackoverflow.com\">meta</a>&nbsp; \r\n");
        out.write(
                "                        <span style=\"color:#46937D;font-size:140%\">&#9632;</span>&nbsp;<a href=\"http://area51.stackexchange.com\">area&nbsp;51</a>&nbsp; \r\n");
        out.write(
                "                        <span style=\"color:#C0D0DC;font-size:140%\">&#9632;</span>&nbsp;<a href=\"http://webapps.stackexchange.com\">webapps</a>&nbsp; \r\n");
        out.write("                        <span style=\"color:#000000;font-size:140%\">&#9632;</span>\r\n");
        out.write("                </div>\r\n");
        out.write("            </div>\r\n");
        out.write("            <div id=\"footer-flair\">\r\n");
        out.write("                <a class=\"peer1\" href=\"http://www.peer1.com/stackoverflow\"></a>  \r\n");
        out.write(
                "                <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" class=\"cc-wiki-link\"></a>\r\n");
        out.write("                <div id=\"svnrev\">rev 2012.3.7.1488</div>\r\n");
        out.write("            </div>\r\n");
        out.write("            <div id=\"copyright\">\r\n");
        out.write("                site design / logo &copy; 2012 stack exchange inc; \r\n");
        out.write(
                "                user contributions licensed under <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" rel=\"license\">cc-wiki</a> with <a href=\"http://blog.stackoverflow.com/2009/06/attribution-required/\" rel=\"license\">attribution required</a>\r\n");
        out.write("            </div>\r\n");
        out.write("        </div>\r\n");
        out.write("    </div>\r\n");
        out.write("</body>\r\n");
        out.write("</html>");
    } 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);
        }
    } finally {
        _jspxFactory.releasePageContext(_jspx_page_context);
    }
}