2012-08-16 23:41:25 -04:00
|
|
|
snippet @page
|
|
|
|
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
|
|
|
snippet jstl
|
|
|
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
|
|
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
|
|
|
|
snippet jstl:c
|
|
|
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
|
|
|
snippet jstl:fn
|
|
|
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
|
|
|
|
snippet cpath
|
|
|
|
${pageContext.request.contextPath}
|
|
|
|
snippet cout
|
2013-11-16 14:45:48 -05:00
|
|
|
<c:out value="${1}" default="${0}" />
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet cset
|
2013-11-16 14:45:48 -05:00
|
|
|
<c:set var="${1}" value="${0}" />
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet cremove
|
2013-11-16 14:45:48 -05:00
|
|
|
<c:remove var="${1}" scope="${0:page}" />
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet ccatch
|
2013-11-16 14:45:48 -05:00
|
|
|
<c:catch var="${0}" />
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet cif
|
2022-05-19 10:57:32 -04:00
|
|
|
<c:if test="\${${1}}">
|
2013-11-16 14:45:48 -05:00
|
|
|
${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
</c:if>
|
|
|
|
snippet cchoose
|
|
|
|
<c:choose>
|
2013-11-16 14:45:48 -05:00
|
|
|
${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
</c:choose>
|
|
|
|
snippet cwhen
|
2022-05-19 10:57:32 -04:00
|
|
|
<c:when test="\${${1}}">
|
2013-11-16 14:45:48 -05:00
|
|
|
${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
</c:when>
|
|
|
|
snippet cother
|
|
|
|
<c:otherwise>
|
2013-11-16 14:45:48 -05:00
|
|
|
${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
</c:otherwise>
|
|
|
|
snippet cfore
|
2022-05-19 10:57:32 -04:00
|
|
|
<c:forEach items="\${${1}}" var="${2}" varStatus="${3}">
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:<c:out value="$2" />}
|
2012-08-16 23:41:25 -04:00
|
|
|
</c:forEach>
|
|
|
|
snippet cfort
|
|
|
|
<c:set var="${1}">${2:item1,item2,item3}</c:set>
|
2022-05-19 10:57:32 -04:00
|
|
|
<c:forTokens var="${3}" items="\${$1}" delims="${4:,}">
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:<c:out value="$3" />}
|
2012-08-16 23:41:25 -04:00
|
|
|
</c:forTokens>
|
|
|
|
snippet cparam
|
2013-11-16 14:45:48 -05:00
|
|
|
<c:param name="${1}" value="${0}" />
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet cparam+
|
|
|
|
<c:param name="${1}" value="${2}" />
|
2013-11-16 14:45:48 -05:00
|
|
|
cparam+${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet cimport
|
|
|
|
<c:import url="${1}" />
|
|
|
|
snippet cimport+
|
|
|
|
<c:import url="${1}">
|
|
|
|
<c:param name="${2}" value="${3}" />
|
2013-11-16 14:45:48 -05:00
|
|
|
cparam+${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
</c:import>
|
|
|
|
snippet curl
|
|
|
|
<c:url value="${1}" var="${2}" />
|
2022-05-19 10:57:32 -04:00
|
|
|
<a href="\${$2}">${0}</a>
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet curl+
|
|
|
|
<c:url value="${1}" var="${2}">
|
|
|
|
<c:param name="${4}" value="${5}" />
|
2013-11-16 14:45:48 -05:00
|
|
|
cparam+${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
</c:url>
|
2022-05-19 10:57:32 -04:00
|
|
|
<a href="\${$2}">${3}</a>
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet credirect
|
2013-11-16 14:45:48 -05:00
|
|
|
<c:redirect url="${0}" />
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet contains
|
2013-11-16 14:45:48 -05:00
|
|
|
${fn:contains(${1:string}, ${0:substr})}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet contains:i
|
2013-11-16 14:45:48 -05:00
|
|
|
${fn:containsIgnoreCase(${1:string}, ${0:substr})}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet endswith
|
2013-11-16 14:45:48 -05:00
|
|
|
${fn:endsWith(${1:string}, ${0:suffix})}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet escape
|
2013-11-16 14:45:48 -05:00
|
|
|
${fn:escapeXml(${0:string})}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet indexof
|
2013-11-16 14:45:48 -05:00
|
|
|
${fn:indexOf(${1:string}, ${0:substr})}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet join
|
2013-11-16 14:45:48 -05:00
|
|
|
${fn:join(${1:collection}, ${0:delims})}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet length
|
2013-11-16 14:45:48 -05:00
|
|
|
${fn:length(${0:collection_or_string})}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet replace
|
2013-11-16 14:45:48 -05:00
|
|
|
${fn:replace(${1:string}, ${2:substr}, ${0:replace})}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet split
|
2013-11-16 14:45:48 -05:00
|
|
|
${fn:split(${1:string}, ${0:delims})}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet startswith
|
2013-11-16 14:45:48 -05:00
|
|
|
${fn:startsWith(${1:string}, ${0:prefix})}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet substr
|
2013-11-16 14:45:48 -05:00
|
|
|
${fn:substring(${1:string}, ${2:begin}, ${0:end})}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet substr:a
|
2013-11-16 14:45:48 -05:00
|
|
|
${fn:substringAfter(${1:string}, ${0:substr})}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet substr:b
|
2013-11-16 14:45:48 -05:00
|
|
|
${fn:substringBefore(${1:string}, ${0:substr})}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet lc
|
2013-11-16 14:45:48 -05:00
|
|
|
${fn:toLowerCase(${0:string})}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet uc
|
2013-11-16 14:45:48 -05:00
|
|
|
${fn:toUpperCase(${0:string})}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet trim
|
2013-11-16 14:45:48 -05:00
|
|
|
${fn:trim(${0:string})}
|