⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testauth.tag

📁 某石油系统正在使用的实时报表平台系统
💻 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 + -