📄 testauth.tag
字号:
<%@ tag body-content="empty" %>
<%@ attribute name="auth" required="true" %>
<%@ attribute name="privilege" required="true" %>
<%@ attribute name="truestring" required="true" %>
<%@ attribute name="falsestring" required="false" %>
<%@ include file="/Components/tourFunLibs.jsp" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="result" value="NULL" />
<%
String result = "null";
boolean testResult;
try
{
testResult = tflHasAuth((char)Integer.parseInt(auth), privilege);
}
catch(Exception e)
{
testResult = false;
}
if ( testResult )
result = truestring;
else
if (falsestring!=null)
result=falsestring;
jspContext.setAttribute("result", result);
%>
<c:out value="${result}" />
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -