|
@@ -4,7 +4,7 @@
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
|
|
|
version="2.0">
|
|
|
-
|
|
|
+
|
|
|
<description>JSTL 1.1 functions library</description>
|
|
|
<display-name>JSTL functions sys</display-name>
|
|
|
<tlib-version>1.1</tlib-version>
|
|
@@ -46,79 +46,79 @@
|
|
|
<function-signature>java.lang.Object getConst(java.lang.String)</function-signature>
|
|
|
<example>${fns:getConst(key)}</example>
|
|
|
</function>
|
|
|
-
|
|
|
+
|
|
|
<!-- UserUtils -->
|
|
|
<function>
|
|
|
<description>获取当前用户对象</description>
|
|
|
<name>getUser</name>
|
|
|
<function-class>com.thinkgem.jeesite.modules.sys.utils.UserUtils</function-class>
|
|
|
<function-signature>com.thinkgem.jeesite.modules.sys.entity.User getUser()</function-signature>
|
|
|
- <example>${fns:getUser()}</example>
|
|
|
+ <example>${fns:getUser()}</example>
|
|
|
</function>
|
|
|
-
|
|
|
+
|
|
|
<function>
|
|
|
<description>根据编码获取用户对象</description>
|
|
|
<name>getUserById</name>
|
|
|
<function-class>com.thinkgem.jeesite.modules.sys.utils.UserUtils</function-class>
|
|
|
<function-signature>com.thinkgem.jeesite.modules.sys.entity.User get(java.lang.String)</function-signature>
|
|
|
- <example>${fns:getUserById(id)}</example>
|
|
|
+ <example>${fns:getUserById(id)}</example>
|
|
|
</function>
|
|
|
-
|
|
|
+
|
|
|
<function>
|
|
|
<description>获取授权用户信息</description>
|
|
|
<name>getPrincipal</name>
|
|
|
<function-class>com.thinkgem.jeesite.modules.sys.utils.UserUtils</function-class>
|
|
|
<function-signature>com.thinkgem.jeesite.modules.sys.security.SystemAuthorizingRealm.Principal getPrincipal()</function-signature>
|
|
|
- <example>${fns:getPrincipal()}</example>
|
|
|
+ <example>${fns:getPrincipal()}</example>
|
|
|
</function>
|
|
|
-
|
|
|
+
|
|
|
<function>
|
|
|
<description>获取当前用户的菜单对象列表</description>
|
|
|
<name>getMenuList</name>
|
|
|
<function-class>com.thinkgem.jeesite.modules.sys.utils.UserUtils</function-class>
|
|
|
<function-signature>java.util.List getMenuList()</function-signature>
|
|
|
- <example>${fns:getMenuList()}</example>
|
|
|
+ <example>${fns:getMenuList()}</example>
|
|
|
</function>
|
|
|
-
|
|
|
+
|
|
|
<function>
|
|
|
<description>获取当前用户的区域对象列表</description>
|
|
|
<name>getAreaList</name>
|
|
|
<function-class>com.thinkgem.jeesite.modules.sys.utils.UserUtils</function-class>
|
|
|
<function-signature>java.util.List getAreaList()</function-signature>
|
|
|
- <example>${fns:getAreaList()}</example>
|
|
|
+ <example>${fns:getAreaList()}</example>
|
|
|
</function>
|
|
|
-
|
|
|
+
|
|
|
<function>
|
|
|
<description>获取当前用户的部门对象列表</description>
|
|
|
<name>getOfficeList</name>
|
|
|
<function-class>com.thinkgem.jeesite.modules.sys.utils.UserUtils</function-class>
|
|
|
<function-signature>java.util.List getOfficeList()</function-signature>
|
|
|
- <example>${fns:getOfficeList()}</example>
|
|
|
+ <example>${fns:getOfficeList()}</example>
|
|
|
</function>
|
|
|
-
|
|
|
+
|
|
|
<function>
|
|
|
<description>获取当前用户缓存</description>
|
|
|
<name>getCache</name>
|
|
|
<function-class>com.thinkgem.jeesite.modules.sys.utils.UserUtils</function-class>
|
|
|
<function-signature>java.lang.Object getCache(java.lang.String, java.lang.Object)</function-signature>
|
|
|
- <example>${fns:getCache(cacheName, defaultValue)}</example>
|
|
|
+ <example>${fns:getCache(cacheName, defaultValue)}</example>
|
|
|
</function>
|
|
|
-
|
|
|
+
|
|
|
<!-- DictUtils -->
|
|
|
<function>
|
|
|
<description>获取字典标签</description>
|
|
|
<name>getDictLabel</name>
|
|
|
<function-class>com.thinkgem.jeesite.modules.sys.utils.DictUtils</function-class>
|
|
|
<function-signature>java.lang.String getDictLabel(java.lang.String, java.lang.String, java.lang.String)</function-signature>
|
|
|
- <example>${fns:getDictLabel(value, type, defaultValue)}</example>
|
|
|
+ <example>${fns:getDictLabel(value, type, defaultValue)}</example>
|
|
|
</function>
|
|
|
-
|
|
|
+
|
|
|
<function>
|
|
|
<description>获取字典标签(多个)</description>
|
|
|
<name>getDictLabels</name>
|
|
|
<function-class>com.thinkgem.jeesite.modules.sys.utils.DictUtils</function-class>
|
|
|
<function-signature>java.lang.String getDictLabels(java.lang.String, java.lang.String, java.lang.String)</function-signature>
|
|
|
- <example>${fns:getDictLabels(values, type, defaultValue)}</example>
|
|
|
+ <example>${fns:getDictLabels(values, type, defaultValue)}</example>
|
|
|
</function>
|
|
|
|
|
|
<function>
|
|
@@ -126,23 +126,23 @@
|
|
|
<name>getDictValue</name>
|
|
|
<function-class>com.thinkgem.jeesite.modules.sys.utils.DictUtils</function-class>
|
|
|
<function-signature>java.lang.String getDictValue(java.lang.String, java.lang.String, java.lang.String)</function-signature>
|
|
|
- <example>${fns:getDictValue(label, type, defaultValue)}</example>
|
|
|
+ <example>${fns:getDictValue(label, type, defaultValue)}</example>
|
|
|
</function>
|
|
|
-
|
|
|
+
|
|
|
<function>
|
|
|
<description>获取字典对象列表</description>
|
|
|
<name>getDictList</name>
|
|
|
<function-class>com.thinkgem.jeesite.modules.sys.utils.DictUtils</function-class>
|
|
|
<function-signature>java.util.List getDictList(java.lang.String)</function-signature>
|
|
|
- <example>${fns:getDictList(type)}</example>
|
|
|
+ <example>${fns:getDictList(type)}</example>
|
|
|
</function>
|
|
|
-
|
|
|
+
|
|
|
<function>
|
|
|
<description>获取字典对象列表</description>
|
|
|
<name>getDictListJson</name>
|
|
|
<function-class>com.thinkgem.jeesite.modules.sys.utils.DictUtils</function-class>
|
|
|
<function-signature>java.lang.String getDictListJson(java.lang.String)</function-signature>
|
|
|
- <example>${fns:getDictListJson(type)}</example>
|
|
|
+ <example>${fns:getDictListJson(type)}</example>
|
|
|
</function>
|
|
|
|
|
|
<!-- CmmeDictUtils -->
|
|
@@ -192,112 +192,121 @@
|
|
|
<name>urlEncode</name>
|
|
|
<function-class>com.thinkgem.jeesite.common.utils.Encodes</function-class>
|
|
|
<function-signature>java.lang.String urlEncode(java.lang.String)</function-signature>
|
|
|
- <example>${fns:urlEncode(part)}</example>
|
|
|
+ <example>${fns:urlEncode(part)}</example>
|
|
|
</function>
|
|
|
<function>
|
|
|
<description>URL解码</description>
|
|
|
<name>urlDecode</name>
|
|
|
<function-class>com.thinkgem.jeesite.common.utils.Encodes</function-class>
|
|
|
<function-signature>java.lang.String urlDecode(java.lang.String)</function-signature>
|
|
|
- <example>${fns:urlDecode(part)}</example>
|
|
|
+ <example>${fns:urlDecode(part)}</example>
|
|
|
</function>
|
|
|
<function>
|
|
|
<description>HTML编码</description>
|
|
|
<name>escapeHtml</name>
|
|
|
<function-class>com.thinkgem.jeesite.common.utils.Encodes</function-class>
|
|
|
<function-signature>java.lang.String escapeHtml(java.lang.String)</function-signature>
|
|
|
- <example>${fns:escapeHtml(html)}</example>
|
|
|
+ <example>${fns:escapeHtml(html)}</example>
|
|
|
</function>
|
|
|
<function>
|
|
|
<description>HTML解码</description>
|
|
|
<name>unescapeHtml</name>
|
|
|
<function-class>com.thinkgem.jeesite.common.utils.Encodes</function-class>
|
|
|
<function-signature>java.lang.String unescapeHtml(java.lang.String)</function-signature>
|
|
|
- <example>${fns:unescapeHtml(html)}</example>
|
|
|
+ <example>${fns:unescapeHtml(html)}</example>
|
|
|
</function>
|
|
|
-
|
|
|
+
|
|
|
<!-- StringUtils -->
|
|
|
<function>
|
|
|
<description>从后边开始截取字符串</description>
|
|
|
<name>substringAfterLast</name>
|
|
|
<function-class>org.apache.commons.lang3.StringUtils</function-class>
|
|
|
<function-signature>java.lang.String substringAfterLast(java.lang.String, java.lang.String)</function-signature>
|
|
|
- <example>${fns:substringAfterLast(str,separator)}</example>
|
|
|
+ <example>${fns:substringAfterLast(str,separator)}</example>
|
|
|
</function>
|
|
|
<function>
|
|
|
<description>判断字符串是否以某某开头</description>
|
|
|
<name>startsWith</name>
|
|
|
<function-class>org.apache.commons.lang3.StringUtils</function-class>
|
|
|
<function-signature>boolean startsWith(java.lang.CharSequence, java.lang.CharSequence)</function-signature>
|
|
|
- <example>${fns:startsWith(str,prefix)}</example>
|
|
|
+ <example>${fns:startsWith(str,prefix)}</example>
|
|
|
</function>
|
|
|
<function>
|
|
|
<description>判断字符串是否以某某结尾</description>
|
|
|
<name>endsWith</name>
|
|
|
<function-class>org.apache.commons.lang3.StringUtils</function-class>
|
|
|
<function-signature>boolean endsWith(java.lang.CharSequence, java.lang.CharSequence)</function-signature>
|
|
|
- <example>${fns:endsWith(str,suffix)}</example>
|
|
|
+ <example>${fns:endsWith(str,suffix)}</example>
|
|
|
</function>
|
|
|
<function>
|
|
|
<description>缩写字符串,超过最大宽度用“...”表示</description>
|
|
|
<name>abbr</name>
|
|
|
<function-class>com.thinkgem.jeesite.common.utils.StringUtils</function-class>
|
|
|
<function-signature>java.lang.String abbr(java.lang.String, int)</function-signature>
|
|
|
- <example>${fns:abbr(str,length)}</example>
|
|
|
+ <example>${fns:abbr(str,length)}</example>
|
|
|
</function>
|
|
|
<function>
|
|
|
<description>替换掉HTML标签</description>
|
|
|
<name>replaceHtml</name>
|
|
|
<function-class>com.thinkgem.jeesite.common.utils.StringUtils</function-class>
|
|
|
<function-signature>java.lang.String replaceHtml(java.lang.String)</function-signature>
|
|
|
- <example>${fns:replaceHtml(html)}</example>
|
|
|
+ <example>${fns:replaceHtml(html)}</example>
|
|
|
</function>
|
|
|
<function>
|
|
|
<description>转换为JS获取对象值,生成三目运算返回结果。</description>
|
|
|
<name>jsGetVal</name>
|
|
|
<function-class>com.thinkgem.jeesite.common.utils.StringUtils</function-class>
|
|
|
<function-signature>java.lang.String jsGetVal(java.lang.String)</function-signature>
|
|
|
- <example>${fns:jsGetVal('row.user.id')} 返回:!row?'':!row.user?'':!row.user.id?'':row.user.id</example>
|
|
|
+ <example>${fns:jsGetVal('row.user.id')} 返回:!row?'':!row.user?'':!row.user.id?'':row.user.id</example>
|
|
|
</function>
|
|
|
<function>
|
|
|
<description>连接两个字符串</description>
|
|
|
<name>appendLast</name>
|
|
|
<function-class>com.thinkgem.jeesite.common.utils.StringUtils</function-class>
|
|
|
<function-signature>java.lang.String appendLast(java.lang.String, java.lang.String)</function-signature>
|
|
|
- <example>${fns:appendLast(str,suffixe)}</example>
|
|
|
+ <example>${fns:appendLast(str,suffixe)}</example>
|
|
|
</function>
|
|
|
-
|
|
|
+
|
|
|
<function>
|
|
|
<description>连接多个字符串</description>
|
|
|
<name>appendLast1</name>
|
|
|
<function-class>com.thinkgem.jeesite.common.utils.StringUtils</function-class>
|
|
|
<function-signature>java.lang.String appendLast(java.lang.String, java.lang.String, java.lang.String)</function-signature>
|
|
|
- <example>${fns:appendLast1(str,suffixe1,suffixe2)}</example>
|
|
|
+ <example>${fns:appendLast1(str,suffixe1,suffixe2)}</example>
|
|
|
</function>
|
|
|
-
|
|
|
+
|
|
|
<!-- DateUtils -->
|
|
|
<function>
|
|
|
<description>获取当前日期</description>
|
|
|
<name>getDate</name>
|
|
|
<function-class>com.thinkgem.jeesite.common.utils.DateUtils</function-class>
|
|
|
<function-signature>java.lang.String getDate(java.lang.String)</function-signature>
|
|
|
- <example>${fns:getDate(pattern)}</example>
|
|
|
+ <example>${fns:getDate(pattern)}</example>
|
|
|
</function>
|
|
|
+ <!-- DateUtils -->
|
|
|
+ <function>
|
|
|
+ <description>转换日期</description>
|
|
|
+ <name>setDate</name>
|
|
|
+ <function-class>com.thinkgem.jeesite.common.utils.DateUtils</function-class>
|
|
|
+ <function-signature>java.lang.String setDate(java.util.Date,java.lang.String)</function-signature>
|
|
|
+ <example>${fns:setDate(date,pattern)}</example>
|
|
|
+ </function>
|
|
|
+
|
|
|
<function>
|
|
|
<description>获取过去的天数</description>
|
|
|
<name>pastDays</name>
|
|
|
<function-class>com.thinkgem.jeesite.common.utils.DateUtils</function-class>
|
|
|
<function-signature>long pastDays(java.util.Date)</function-signature>
|
|
|
- <example>${fns:pastDays(date)}</example>
|
|
|
+ <example>${fns:pastDays(date)}</example>
|
|
|
</function>
|
|
|
-
|
|
|
+
|
|
|
<!-- JsonMapper -->
|
|
|
<function>
|
|
|
<description>对象转换JSON字符串</description>
|
|
|
<name>toJson</name>
|
|
|
<function-class>com.thinkgem.jeesite.common.mapper.JsonMapper</function-class>
|
|
|
<function-signature>java.lang.String toJsonString(java.lang.Object)</function-signature>
|
|
|
- <example>${fns:toJson(object)}</example>
|
|
|
+ <example>${fns:toJson(object)}</example>
|
|
|
</function>
|
|
|
|
|
|
<function>
|