I have the following inside a JSP:
<c:if test="${true}">
<jsp:attribute name="extraInlineComplianceJavascript">
window.isSummaryComplianceLinkVisible = '${TabList.isSummaryComplianceLinkVisible}';
window.isDetailComplianceLinkVisible = '${TabList.isDetailComplianceLinkVisible}';
window.complianceSummaryReportTag = '${helper.complianceSummaryReportTag}';
window.complianceDetailReportTag = '${helper.complianceReportTag}';
</jsp:attribute>
</c:if>
As is, I get the following exception:
Must use jsp:body to specify tag body for <MyTag if jsp:attribute is used.
If I remove the outermost <c:if>
tags, it works. Is there a problem with using <jsp:attribute>
inside a <c:if>
? Any help would be appreciated. Thanks.