2、JSTL备忘

xiaoxiao2021-02-28  91

备忘

1、WebContent\webpage\modules\sys\sysLogin.jsp中  <title>${fns:getConfig('productName')} 登录</title>

——》:<%@ include file="/webpage/include/taglib.jsp"%>

2、WebContent\webpage\include\taglib.jsp中

——》:<%@ taglib prefix="fns" uri="/WEB-INF/tlds/fns.tld" %>

3、\WEB-INF\tlds\fns.tld中

——》:  <function>     <description>获取配置</description>     <name>getConfig</name>     <function-class>com.jeeplus.common.config.Global</function-class>     <function-signature>java.lang.String getConfig(java.lang.String)</function-signature>     <example>${fns:getConfig(key)}</example>   </function>

转载请注明原文地址: https://www.6miu.com/read-84302.html

最新回复(0)