ACI API 24.1

# JSP Tag Library

The Java Client NG IDOL SDK has a JSP tag library to provide an alternative method for sending actions.

The SDK includes documentation for these tags, as well as JavaDocs. For more information about the tag library, refer to these documents in your Java Client NG IDOL SDK installation package.

The following example displays the current memory report for an ACI server.

    <c:catch var="memoryReportException">
     <aci:action var="memoryReportResult" action="MemoryReport"
         aciService="${aciService}" />
    </c:catch>

    <c:choose>
      <c:when test="${empty memoryReportException}">
       <div id="memoryReport" class="content">
         <div class="title"><fmt:message key="memoryReport.title" /></div>
          <table class="data marginTop10px">
            <tbody>
              <c:set var="bytes">
                <x:out
                  select="$memoryReportResult/autnresponse/
                    responsedata/memory0/memoryusage" />
              </c:set>
              <tr>
                <td class="bolder"><fmt:message key="memoryReport.total" /></td>
                <td>
                  <fmt:formatNumber value="${(bytes div 1024) div 1024}"
                      type="number" pattern="###.##" />
                  <fmt:message key="memoryReport.mb" />
                </td>
              </tr>
              <x:forEach
                  select="$memoryReportResult/autnresponse/responsedata/memory0//*[
                    starts-with(name(),'memory')
                    and not(starts-with(name(),'memoryusage'))]">
                <tr>
                  <x:set var="padding" select="count(ancestor::*)" />
                  <td class="bolder" style="padding-left: ${(padding - 2) * 25}px">
                    <x:out select="name" />
                  </td>
                  <td>
                    <c:set var="usage1"><x:out select="memoryusage" /></c:set>
                    <c:choose>
                      <c:when test="${((usage1 div 1024) div 1024) gt 1}">
                        <fmt:formatNumber value="${(usage1 div 1024) div 1024}"
                            type="number" pattern="###.##" />
                        <fmt:message key="memoryReport.mb" />
                      </c:when>
                      <c:when test="${(usage1 div 1024) gt 1}">
                        <fmt:formatNumber value="${usage1 div 1024}"
                            type="number" pattern="###.##" />
                        <fmt:message key="memoryReport.kb" />
                      </c:when>
                      <c:otherwise>${usage1}
                        <fmt:message key="memoryReport.b" />
                      </c:otherwise>
                    </c:choose>
                  </td>
                  <td>
                    <x:if select="components[text()!='0']">
                      <c:set var="usage2">
                        <x:out select="noncomponentusage" />
                      </c:set>
                      <c:choose>
                      <c:when test="${((usage2 div 1024) div 1024) gt 1}">(
                        <fmt:formatNumber value="${(usage2 div 1024) div 1024}"
                            type="number" pattern="###.##" />
                        <fmt:message key="memoryReport.mb" />)
                      </c:when>
                      <c:when test="${(usage2 div 1024) gt 1}">(
                        <fmt:formatNumber value="${usage2 div 1024}"
                            type="number" pattern="###.##" />
                        <fmt:message key="memoryReport.kb" />)
                      </c:when>
                      <c:otherwise>(${usage2}
                        <fmt:message key="memoryReport.b" />)
                      </c:otherwise>
                    </c:choose>
                    </x:if>
                  </td>
                </tr>
              </x:forEach>
            </tbody>
          </table>
        </div>
      </c:when>
      <c:otherwise>
        <div class="content error">
          <fmt:message key="memoryReport.error">
            <fmt:param value="${memoryReportException.message}" />
          </fmt:message>
        </div>
      </c:otherwise>
    </c:choose>

Copyright 2023 Open Text
Version 24.1 | Last updated December 2023

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: IDOL ACI API 24.1

Topic Title: JSP Tag Library