Open topic with navigation

# 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>

© 2018 Micro Focus or one of its affiliates | Send documentation feedback to Micro Focus Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm