Output this screen using HTML.
@exception DBException File exception.
776572
public void printScreenFieldData(ScreenField sField, PrintWriter out, int iPrintOptions)
    {
        this.getScreenFieldView().printScreenFieldData(sField, out, iPrintOptions);
    }
288428
private void createHtmlDoc() throws PrompterException {
        HtmlDocConfiguration configuration = new HtmlDocConfiguration();

        String heading = prompter.prompt("Enter overview title:", configuration.getHeading());
        String columns = prompter.prompt("Enter number of columns in overview:", configuration.getColumns());
        String pageTitle = prompter.prompt("Enter page title:", configuration.getPageTitle());
        String outputFile = prompter.prompt("Enter output file name:", configuration.getOutputFile());
        String logo = prompter.prompt("Enter file path to logo:", configuration.getLogo());

        String confirm = prompter.prompt("Confirm HTML documentation: outputFile='target/" + outputFile + (outputFile.endsWith(".html") ? "" : ".html") + "'\n",
                Arrays.asList("y", "n"), "y");

        if (confirm.equalsIgnoreCase("n")) {
            return;
        }

        HtmlTestDocsGenerator generator = getHtmlTestDocsGenerator();

        generator.withOutputFile(outputFile + (outputFile.endsWith(".html") ? "" : ".html"))
                .withPageTitle(pageTitle)
                .withOverviewTitle(heading)
                .withColumns(columns)
                .useSrcDirectory(getTestSrcDirectory())
                .withLogo(logo);

        generator.generateDoc();

        getLog().info("Successfully created HTML documentation: outputFile='target/" + outputFile + (outputFile.endsWith(".html") ? "" : ".html") + "'");
    }
17272
public void printHtmlHeading(PrintWriter out)
    {
        if (this.getScreenField().getConverter() != null)
            super.printHtmlHeading(out);
        else if (this.getScreenField().getParentScreen() instanceof GridScreen)
        { // These are command buttons such as "Form" or "Detail"
            String strImage = "Form";
            if (((SButtonBox)this.getScreenField()).getImageButtonName() != null)
                strImage = ((SButtonBox)this.getScreenField()).getImageButtonName();
            out.println("<th align=\"center\" valign=\"center\"><img src=\"" + HtmlConstants.IMAGE_DIR + "buttons/" + strImage + ".gif\" width=\"16\" height=\"16\" alt=\"Open this record\"></th>");
        }
    }
331690
public synchronized void printResults() throws Exception {
        printHeading("Transaction Results");

        BenchmarkCallback.printAllResults();

        ClientStats stats = fullStatsContext.fetch().getStats();

        // 3. Performance statistics
        printHeading("Client Workload Statistics");

        System.out.printf("Average throughput:            %,9d txns/sec\n", stats.getTxnThroughput());
        // cast stats.getAverateLatency from long to double
        System.out.printf("Average latency:               %,9.2f ms\n", stats.getAverageLatency());
        //System.out.printf("Average latency:               %,9d ms\n", stats.getAverageLatency());
        System.out.printf("95th percentile latency:       %,9d ms\n", stats.kPercentileLatency(.95));
        System.out.printf("99th percentile latency:       %,9d ms\n", stats.kPercentileLatency(.99));

        printHeading("System Server Statistics");

        // cast stats.getAverageInternalLatency from long to double
        System.out.printf("Reported Internal Avg Latency: %,9.2f ms\n", stats.getAverageInternalLatency());
        //System.out.printf("Reported Internal Avg Latency: %,9d ms\n", stats.getAverageInternalLatency());

        // 4. Write stats to file if requested
        client.writeSummaryCSV(stats, config.statsfile);
    }
203486
public void printScreenFieldData(ScreenComponent sField, PrintWriter out, int iPrintOptions)
    {
        ((ScreenField)sField).printData(out, iPrintOptions);
    }
1362587
public void displayReport() throws JspException {

        // save initialized instance of this class in request attribute for included sub-elements
        getJsp().getRequest().setAttribute(SESSION_WORKPLACE_CLASS, this);
        switch (getAction()) {
            case ACTION_REPORT_END:
                actionCloseDialog();
                break;
            case ACTION_CANCEL:
                actionCloseDialog();
                break;
            case ACTION_REPORT_UPDATE:
                setParamAction(REPORT_UPDATE);
                getJsp().include(FILE_REPORT_OUTPUT);
                break;
            case ACTION_REPORT_BEGIN:
            case ACTION_CONFIRMED:
            case ACTION_DEFAULT:
            default:
                try {
                    if (getCms().readProject(
                        new CmsUUID(getParamProjectid())).getType() == CmsProject.PROJECT_TYPE_TEMPORARY) {
                        // set the flag that this is a temporary project
                        setParamRefreshWorkplace(CmsStringUtil.TRUE);
                    }
                } catch (Exception e) {
                    // ignore
                }

                if (getParamProjectid() == null) {
                    return;
                }

                CmsPublishList list = null;
                try {
                    CmsProject currentProject = getCms().getRequestContext().getCurrentProject();
                    getCms().getRequestContext().setCurrentProject(
                        getCms().readProject(new CmsUUID(getParamProjectid())));
                    list = OpenCms.getPublishManager().getPublishList(getCms());
                    getCms().getRequestContext().setCurrentProject(currentProject);
                } catch (CmsException e) {
                    throw new CmsRuntimeException(e.getMessageContainer(), e);
                }

                // start validation check
                startValidationThread(list);
                getJsp().include(FILE_REPORT_OUTPUT);
        }
    }
738962
public boolean printData(PrintWriter out, int iHtmlAttributes)
    {
        boolean bFieldsFound = false;
        String strXmlFilename = this.getProperty(DBParams.XML);                // Html page
        if (strXmlFilename == null)
            strXmlFilename = this.getProperty(DBParams.TEMPLATE);
        if (DBConstants.BLANK.equals(strXmlFilename))
            strXmlFilename = DBConstants.DEFAULT_HELP_FILE;
        if (strXmlFilename != null)
        {
            if ((strXmlFilename.indexOf(':') == -1) && (strXmlFilename.charAt(0) != '/'))
            {
            	if (strXmlFilename.indexOf('/') == -1)
            		strXmlFilename = DBConstants.DEFAULT_HELP_FILE.substring(0, DBConstants.DEFAULT_HELP_FILE.lastIndexOf('/') + 1) + strXmlFilename;
                String strLanguage = ((BaseApplication)this.getTask().getApplication()).getLanguage(false);
                if ((strLanguage == null) || (strLanguage.equalsIgnoreCase("en")))
                    strLanguage = Constants.BLANK;
                if (strLanguage.length() > 0)
                    strLanguage += "/";
                strXmlFilename = strLanguage + strXmlFilename;  // DBConstants.kxxx;
            }
            boolean bHTML = false;
            if ((strXmlFilename.endsWith(".html"))
                || (strXmlFilename.endsWith(".htm")))
                    bHTML = true;
            if (bHTML)
                out.println(Utility.startTag(XMLTags.HTML));
            InputStream streamIn = this.getTask().getInputStream(strXmlFilename);
            if (streamIn != null)
            	Utility.transferURLStream(null, null, new InputStreamReader(streamIn), out);
            else
            	out.println("File not found: " + strXmlFilename + "<br/>");
            if (bHTML)
                out.println(Utility.endTag(XMLTags.HTML));
        }
        else
            return super.printData(out, HtmlConstants.HTML_DISPLAY);     // DO print screen
        return bFieldsFound;
    }
1182615
public void displayError(DBException ex)
    {
        int iWarningLevel = DBConstants.WARNING_MESSAGE;
        String strMessage = DBConstants.BLANK;
        if (ex instanceof DatabaseException)
        {
            iWarningLevel = ((DatabaseException)ex).getWarningLevel();
            strMessage = ((DatabaseException)ex).getMessage(this.getTask());
        }
        else
            strMessage = ex.getMessage();
        this.displayError(strMessage, iWarningLevel);
    }
780214
public boolean printData(PrintWriter out, int iHtmlAttributes)
    {
        boolean bFieldsFound = false;
        Record recMenu = ((BaseMenuScreen)this.getScreenField()).getMainRecord();
        String strCellFormat = this.getHtmlString(recMenu);
        XMLParser parser = ((BaseMenuScreen)this.getScreenField()).getXMLParser(recMenu);
        parser.parseHtmlData(out, strCellFormat);
        parser.free();
        parser = null;
        return bFieldsFound;
    }
728991
public int getPrintOptions() throws DBException
    {
        int iPrintOptions = super.getPrintOptions();
        if (HtmlConstants.DISPLAY.equalsIgnoreCase(this.getProperty(HtmlConstants.FORMS)))
            iPrintOptions = iPrintOptions | HtmlConstants.REPORT_SCREEN;    // In report mode
        return iPrintOptions;
    }
911821
public static void print(Exception ex, String strDebugType)
    {
        Debug.print(ex, strDebugType, DBConstants.DEBUG_INFO);
    }
104601
public void printHtmlStartForm(PrintWriter out)
        throws DBException
    {
        String strAction = "post";

        BasePanel modelScreen = (BaseScreen)this.getScreenField();
        int iNumCols = modelScreen.getSFieldCount();
        int iInputCount = 0;
        for (int i = 0; i < iNumCols; i++)
        {
            ScreenField sField = modelScreen.getSField(i);
            if (!sField.isToolbar())
                if (sField.getConverter() != null)
                    if (sField.getConverter().getField() != null)
                    {
                        if (DBParams.PASSWORD.equalsIgnoreCase(sField.getConverter().getField().getFieldName()))
                            iInputCount = 5;    // Always post if password is in the URL
                        iInputCount++;
                    }
        }
        if (iInputCount < 5)
            strAction = "get";
        if (modelScreen instanceof GridScreen)
            if (modelScreen.getEditing() == true)
                strAction = "post";
        out.println("<form action=\"" + modelScreen.getServletPath(null) + "\" method=\"" + strAction + "\">");
        this.addHiddenParams(out, this.getHiddenParams());
    }
1072031
public void printScreenFieldData(ScreenComponent sField, PrintWriter out, int iPrintOptions)
    {
        ((HScreenField)((ScreenField)sField).getScreenFieldView()).printHtmlHeading(out);
        ((HScreenField)((ScreenField)sField).getScreenFieldView()).printDisplayControl(out);
    }
73268
public void printHtmlMenubar(PrintWriter out, ResourceBundle reg)
        throws DBException
    {
        char chMenubar = ScreenFieldViewAdapter.getFirstToUpper(this.getProperty(DBParams.MENUBARS), 'Y');
        if (chMenubar == 'Y')
        {
            String strUserName = this.getProperty(DBParams.USER_NAME);
            String strUserID = this.getProperty(DBParams.USER_ID);
            if ((strUserName == null) || (DBConstants.ANON_USER_ID.equals(strUserID)) || (Utility.isNumeric(strUserName)))
                strUserName = DBConstants.BLANK;
            String strNav = reg.getString((strUserName.length() > 0) ? "htmlMenubar" : "htmlMenubarAnon");
            strNav = Utility.replaceResources(strNav, reg, null, null);
            String strScreen = ((BasePanel)this.getScreenField()).getScreenURL();
            strScreen = Utility.encodeXML(strScreen);
            String strTitle = this.getProperty("title");                // Menu page
            if ((strTitle == null) || (strTitle.length() == 0))
                strTitle = ((BasePanel)this.getScreenField()).getTitle();
            strNav = Utility.replace(strNav, HtmlConstants.URL_TAG, strScreen);
            strNav = Utility.replace(strNav, HtmlConstants.TITLE_TAG, strTitle);
            strNav = Utility.replace(strNav, HtmlConstants.USER_NAME_TAG, strUserName);
            this.writeHtmlString(strNav, out);
        }
    }
1033035
public boolean printData(PrintWriter out, int iHtmlAttributes)
    {
        boolean bFieldsFound = false;
        String strXml = this.getProperty(DBParams.XML);                // Html page
        if (strXml == null)
            strXml = this.getProperty(DBParams.TEMPLATE);
        if (DBConstants.BLANK.equals(strXml))
            strXml = null;
        if (strXml != null)
        {
            if ((strXml.indexOf(':') == -1) && (strXml.charAt(0) != '/'))
            {
                String strLanguage = ((BaseApplication)this.getTask().getApplication()).getLanguage(false);
                if (strLanguage == null)
                    strLanguage = Constants.BLANK;
                if (strLanguage.length() > 0)
                    strLanguage += "/";
                strXml = strLanguage + strXml;  // DBConstants.kxxx;
            }
            InputStream streamIn = this.getTask().getInputStream(strXml);
            this.parseStreamPrintHtml(out, streamIn);
        }
        else
            return super.printData(out, HtmlConstants.HTML_DISPLAY);     // DO print screen
        return bFieldsFound;
    }
776583
public boolean printData(PrintWriter out, int iPrintOptions)
    {
        if (this.getProperty(DBParams.XML) != null)
            return this.getScreenFieldView().printData(out, iPrintOptions);
        else
            return super.printData(out, iPrintOptions);
    }
677229
public void render() throws IOException, JspException {

        boolean isNewFunctionType = OpenCms.getResourceManager().matchResourceType(
            CmsResourceTypeFunctionConfig.TYPE_NAME,
            m_element.getResource().getTypeId());
        if (isNewFunctionType) {
            CmsFunctionFormatterBean function = getFormatterBean(m_cms);
            if (function != null) {
                CmsUUID jspId = function.getRealJspId();
                if (jspId != null) {
                    CmsJspTagInclude.includeTagAction(
                        m_context,
                        m_cms.getRequestContext().removeSiteRoot(function.getRealJspRootPath()),
                        null,
                        m_cms.getRequestContext().getLocale(),
                        false,
                        m_cms.getRequestContext().getCurrentProject().isOnlineProject(),
                        function.getParameters(),
                        CmsRequestUtil.getAttributeMap(m_request),
                        m_request,
                        m_response);
                } else {
                    m_context.getOut().print(defaultHtml(m_request));
                }
            } else {
                m_context.getOut().print(defaultHtml(m_request));
            }
        } else {
            CmsDynamicFunctionBean.Format format = getFunctionFormat();
            if ((format != null) && m_cms.existsResource(format.getJspStructureId())) {
                try {
                    CmsResource jspResource = m_cms.readResource(format.getJspStructureId());
                    Map<String, String[]> params = new HashMap<>();
                    for (Entry<String, String> paramEntry : format.getParameters().entrySet()) {
                        params.put(paramEntry.getKey(), new String[] {paramEntry.getValue()});
                    }
                    CmsJspTagInclude.includeTagAction(
                        m_context,

                        m_cms.getSitePath(jspResource),
                        null,
                        m_cms.getRequestContext().getLocale(),
                        false,
                        m_cms.getRequestContext().getCurrentProject().isOnlineProject(),
                        params,
                        CmsRequestUtil.getAttributeMap(m_request),
                        m_request,
                        m_response);
                } catch (CmsException e) {
                    LOG.error(e.getLocalizedMessage(), e);
                }
            } else {
                m_context.getOut().print(defaultHtml(m_request));
            }
        }
    }