亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? spring.ftl

?? 有關此類編程有心德的高手 希望能夠多多給予指教
?? FTL
字號:
<#ftl strip_whitespace=true>
<#--
 * spring.ftl
 *
 * This file consists of a collection of FreeMarker macros aimed at easing
 * some of the common requirements of web applications - in particular
 * handling of forms.
 *
 * Spring's FreeMarker support will automatically make this file and therefore
 * all macros within it available to any application using Spring's
 * FreeMarkerConfigurer.
 *
 * To take advantage of these macros, the "exposeSpringMacroHelpers" property
 * of the FreeMarker class needs to be set to "true". This will expose a
 * RequestContext under the name "springMacroRequestContext", as needed by
 * the macros in this library.
 *
 * @author Darren Davison
 * @author Juergen Hoeller
 * @since 1.1
 -->

<#--
 * message
 *
 * Macro to translate a message code into a message.
 -->
<#macro message code>${springMacroRequestContext.getMessage(code)}</#macro>

<#--
 * messageText
 *
 * Macro to translate a message code into a message,
 * using the given default text if no message found.
 -->
<#macro messageText code, text>${springMacroRequestContext.getMessage(code, text)}</#macro>

<#--
 * messageArgs
 *
 * Macro to translate a message code with arguments into a message.
 -->
<#macro messageArgs code, args>${springMacroRequestContext.getMessage(code, args)}</#macro>

<#--
 * messageArgsText
 *
 * Macro to translate a message code with arguments into a message,
 * using the given default text if no message found.
 -->
<#macro messageArgsText code, args, text>${springMacroRequestContext.getMessage(code, args, text)}</#macro>

<#--
 * theme
 *
 * Macro to translate a theme message code into a message.
 -->
<#macro theme code>${springMacroRequestContext.getThemeMessage(code)}</#macro>

<#--
 * themeText
 *
 * Macro to translate a theme message code into a message,
 * using the given default text if no message found.
 -->
<#macro themeText code, text>${springMacroRequestContext.getThemeMessage(code, text)}</#macro>

<#--
 * themeArgs
 *
 * Macro to translate a theme message code with arguments into a message.
 -->
<#macro themeArgs code, args>${springMacroRequestContext.getThemeMessage(code, args)}</#macro>

<#--
 * themeArgsText
 *
 * Macro to translate a theme message code with arguments into a message,
 * using the given default text if no message found.
 -->
<#macro themeArgsText code, args, text>${springMacroRequestContext.getThemeMessage(code, args, text)}</#macro>

<#--
 * url
 *
 * Takes a relative URL and makes it absolute from the server root by
 * adding the context root for the web application.
 -->
<#macro url relativeUrl>${springMacroRequestContext.getContextPath()}${relativeUrl}</#macro>

<#--
 * bind
 *
 * Exposes a BindStatus object for the given bind path, which can be
 * a bean (e.g. "person") to get global errors, or a bean property
 * (e.g. "person.name") to get field errors. Can be called multiple times
 * within a form to bind to multiple command objects and/or field names.
 *
 * This macro will participate in the default HTML escape setting for the given
 * RequestContext. This can be customized by calling "setDefaultHtmlEscape"
 * on the "springMacroRequestContext" context variable, or via the
 * "defaultHtmlEscape" context-param in web.xml (same as for the JSP bind tag).
 * Also regards a "htmlEscape" variable in the namespace of this library.
 *
 * Producing no output, the following context variable will be available
 * each time this macro is referenced (assuming you import this library in
 * your templates with the namespace 'spring'):
 *
 *   spring.status : a BindStatus instance holding the command object name,
 *   expression, value, and error messages and codes for the path supplied
 *
 * @param path : the path (string value) of the value required to bind to.
 *   Spring defaults to a command name of "command" but this can be overridden
 *   by user config.
 -->
<#macro bind path>
    <#if htmlEscape?exists>
        <#assign status = springMacroRequestContext.getBindStatus(path, htmlEscape)>
    <#else>
        <#assign status = springMacroRequestContext.getBindStatus(path)>
    </#if>
    <#-- assign a temporary value, forcing a string representation for any
    kind of variable. This temp value is only used in this macro lib -->
    <#if status.value?exists && status.value?is_boolean>
        <#assign stringStatusValue=status.value?string>
    <#else>
        <#assign stringStatusValue=status.value?default("")>
    </#if>
</#macro>

<#--
 * bindEscaped
 *
 * Similar to spring:bind, but takes an explicit HTML escape flag rather
 * than relying on the default HTML escape setting.
 -->
<#macro bindEscaped path, htmlEscape>
    <#assign status = springMacroRequestContext.getBindStatus(path, htmlEscape)>
    <#-- assign a temporary value, forcing a string representation for any
    kind of variable. This temp value is only used in this macro lib -->
    <#if status.value?exists && status.value?is_boolean>
        <#assign stringStatusValue=status.value?string>
    <#else>
        <#assign stringStatusValue=status.value?default("")>
    </#if>
</#macro>

<#--
 * formInput
 *
 * Display a form input field of type 'text' and bind it to an attribute
 * of a command or bean.
 *
 * @param path the name of the field to bind to
 * @param attributes any additional attributes for the element (such as class
 *    or CSS styles or size
 -->
<#macro formInput path attributes="" fieldType="text">
    <@bind path/>
    <input type="${fieldType}" id="${status.expression}" name="${status.expression}" value="<#if fieldType!="password">${stringStatusValue}</#if>" ${attributes}<@closeTag/>
</#macro>

<#--
 * formPasswordInput
 *
 * Display a form input field of type 'password' and bind it to an attribute
 * of a command or bean. No value will ever be displayed. This functionality
 * can also be obtained by calling the formInput macro with a 'type' parameter
 * of 'password'.
 *
 * @param path the name of the field to bind to
 * @param attributes any additional attributes for the element (such as class
 *    or CSS styles or size
 -->
<#macro formPasswordInput path attributes="">
    <@formInput path, attributes, "password"/>
</#macro>

<#--
 * formHiddenInput
 *
 * Generate a form input field of type 'hidden' and bind it to an attribute
 * of a command or bean. This functionality can also be obtained by calling
 * the formInput macro with a 'type' parameter of 'hidden'.
 *
 * @param path the name of the field to bind to
 * @param attributes any additional attributes for the element (such as class
 *    or CSS styles or size
 -->
<#macro formHiddenInput path attributes="">
    <@formInput path, attributes, "hidden"/>
</#macro>

<#--
 * formTextarea
 *
 * Display a text area and bind it to an attribute of a command or bean.
 *
 * @param path the name of the field to bind to
 * @param attributes any additional attributes for the element (such as class
 *    or CSS styles or size
 -->
<#macro formTextarea path attributes="">
    <@bind path/>
    <textarea id="${status.expression}" name="${status.expression}" ${attributes}>${stringStatusValue}</textarea>
</#macro>

<#--
 * formSingleSelect
 *
 * Show a selectbox (dropdown) input element allowing a single value to be chosen
 * from a list of options.
 *
 * @param path the name of the field to bind to
 * @param options a map (value=label) of all the available options
 * @param attributes any additional attributes for the element (such as class
 *    or CSS styles or size
-->
<#macro formSingleSelect path options attributes="">
    <@bind path/>
    <select id="${status.expression}" name="${status.expression}" ${attributes}>
        <#list options?keys as value>
        <option value="${value?html}"<@checkSelected value/>>${options[value]?html}</option>
        </#list>
    </select>
</#macro>

<#--
 * formMultiSelect
 *
 * Show a listbox of options allowing the user to make 0 or more choices from
 * the list of options.
 *
 * @param path the name of the field to bind to
 * @param options a map (value=label) of all the available options
 * @param attributes any additional attributes for the element (such as class
 *    or CSS styles or size
-->
<#macro formMultiSelect path options attributes="">
    <@bind path/>
    <select multiple="multiple" id="${status.expression}" name="${status.expression}" ${attributes}>
        <#list options?keys as value>
        <#assign isSelected = contains(status.value?default([""]), value)>
        <option value="${value?html}"<#if isSelected> selected="selected"</#if>>${options[value]?html}</option>
        </#list>
    </select>
</#macro>

<#--
 * formRadioButtons
 *
 * Show radio buttons.
 *
 * @param path the name of the field to bind to
 * @param options a map (value=label) of all the available options
 * @param separator the html tag or other character list that should be used to
 *    separate each option. Typically '&nbsp;' or '<br>'
 * @param attributes any additional attributes for the element (such as class
 *    or CSS styles or size
-->
<#macro formRadioButtons path options separator attributes="">
    <@bind path/>
    <#list options?keys as value>
    <#assign id="${status.expression}${value_index}">
    <input type="radio" id="${id}" name="${status.expression}" value="${value?html}"<#if stringStatusValue == value> checked="checked"</#if> ${attributes}<@closeTag/>
    <label for="${id}">${options[value]?html}</label>${separator}
    </#list>
</#macro>

<#--
 * formCheckboxes
 *
 * Show checkboxes.
 *
 * @param path the name of the field to bind to
 * @param options a map (value=label) of all the available options
 * @param separator the html tag or other character list that should be used to
 *    separate each option. Typically '&nbsp;' or '<br>'
 * @param attributes any additional attributes for the element (such as class
 *    or CSS styles or size
-->
<#macro formCheckboxes path options separator attributes="">
    <@bind path/>
    <#list options?keys as value>
    <#assign id="${status.expression}${value_index}">
    <#assign isSelected = contains(status.value?default([""]), value)>
    <input type="checkbox" id="${id}" name="${status.expression}" value="${value?html}"<#if isSelected> checked="checked"</#if> ${attributes}<@closeTag/>
    <label for="${id}">${options[value]?html}</label>${separator}
    </#list>
    <input type="hidden" name="_${status.expression}" value="on"/>
</#macro>

<#--
 * showErrors
 *
 * Show validation errors for the currently bound field, with
 * optional style attributes.
 *
 * @param separator the html tag or other character list that should be used to
 *    separate each option. Typically '<br>'.
 * @param classOrStyle either the name of a CSS class element (which is defined in
 *    the template or an external CSS file) or an inline style. If the value passed in here
 *    contains a colon (:) then a 'style=' attribute will be used, else a 'class=' attribute
 *    will be used.
-->
<#macro showErrors separator classOrStyle="">
    <#list status.errorMessages as error>
    <#if classOrStyle == "">
        <b>${error}</b>
    <#else>
        <#if classOrStyle?index_of(":") == -1><#assign attr="class"><#else><#assign attr="style"></#if>
        <span ${attr}="${classOrStyle}">${error}</span>
    </#if>
    <#if error_has_next>${separator}</#if>
    </#list>
</#macro>

<#--
 * checkSelected
 *
 * Check a value in a list to see if it is the currently selected value.
 * If so, add the 'selected="selected"' text to the output.
 * Handles values of numeric and string types.
 * This function is used internally but can be accessed by user code if required.
 *
 * @param value the current value in a list iteration
-->
<#macro checkSelected value>
    <#if stringStatusValue?is_number && stringStatusValue == value?number>selected="selected"</#if>
    <#if stringStatusValue?is_string && stringStatusValue == value>selected="selected"</#if>
</#macro>

<#--
 * contains
 *
 * Macro to return true if the list contains the scalar, false if not.
 * Surprisingly not a FreeMarker builtin.
 * This function is used internally but can be accessed by user code if required.
 *
 * @param list the list to search for the item
 * @param item the item to search for in the list
 * @return true if item is found in the list, false otherwise
-->
<#function contains list item>
    <#list list as nextInList>
    <#if nextInList == item><#return true></#if>
    </#list>
    <#return false>
</#function>

<#--
 * closeTag
 *
 * Simple macro to close an HTML tag that has no body with '>' or '/>',
 * depending on the value of a 'xhtmlCompliant' variable in the namespace
 * of this library.
-->
<#macro closeTag>
    <#if xhtmlCompliant?exists && xhtmlCompliant>/><#else>></#if>
</#macro>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产一二三精品| 国产嫩草影院久久久久| 午夜电影网一区| 在线观看日韩电影| 性久久久久久久久久久久| 555夜色666亚洲国产免| 另类小说色综合网站| 久久久久青草大香线综合精品| 国产精品99久久久久久久女警| 久久精品网站免费观看| 不卡的av在线播放| 亚洲国产精品人人做人人爽| 日韩视频中午一区| 国产mv日韩mv欧美| 亚洲五码中文字幕| 26uuu精品一区二区在线观看| 粉嫩av一区二区三区粉嫩| 亚洲日本中文字幕区| 91精品午夜视频| 粉嫩在线一区二区三区视频| 一区二区三区四区乱视频| 欧美日本精品一区二区三区| 韩日精品视频一区| 亚洲伦理在线精品| 日韩亚洲国产中文字幕欧美| 成人高清视频在线观看| 青娱乐精品视频在线| 国产欧美日产一区| 欧美日韩国产另类一区| 国产乱码精品一区二区三| 亚洲精品高清在线观看| 精品国产免费人成在线观看| 色综合天天综合狠狠| 蜜桃视频一区二区| 亚洲综合久久久久| 久久久www免费人成精品| 欧美在线观看视频一区二区 | k8久久久一区二区三区 | 暴力调教一区二区三区| 亚洲h动漫在线| 日韩美女久久久| 久久这里只有精品视频网| 色狠狠av一区二区三区| 国产精品资源在线| 日本va欧美va精品发布| 亚洲精品久久久久久国产精华液| www日韩大片| 欧美一级黄色录像| 欧美婷婷六月丁香综合色| 国产91丝袜在线18| 久久成人18免费观看| 亚洲成在线观看| 亚洲免费观看视频| 欧美激情中文不卡| 久久久综合激的五月天| 91精品国产综合久久久久久 | av中文字幕一区| 麻豆成人免费电影| 美女视频黄免费的久久| 日韩福利电影在线| 亚洲va国产va欧美va观看| 亚洲免费电影在线| 1区2区3区精品视频| 国产亚洲精品资源在线26u| 精品动漫一区二区三区在线观看| 欧美精品视频www在线观看| 欧美日韩日日骚| 欧美亚洲综合一区| 色哟哟精品一区| 色一情一乱一乱一91av| 色婷婷久久99综合精品jk白丝| 北条麻妃一区二区三区| 99国产精品久久久久久久久久| 成人高清免费观看| 91视频国产观看| 99re6这里只有精品视频在线观看| 成人永久免费视频| av一二三不卡影片| 色婷婷激情综合| 久久久久国产精品麻豆| 精品国产乱码久久久久久久| 久久亚洲精精品中文字幕早川悠里| 亚洲精品在线观看视频| 国产日本亚洲高清| 国产精品久久午夜| 亚洲色大成网站www久久九九| 一区二区三区久久| 亚洲成在人线在线播放| 麻豆一区二区在线| 国产在线播放一区二区三区 | 91麻豆精品在线观看| 欧洲生活片亚洲生活在线观看| 欧美在线短视频| 91精品国产综合久久精品麻豆| 精品免费一区二区三区| 日本一区二区三区视频视频| 亚洲欧洲日韩一区二区三区| 一区二区三区日本| 日韩av不卡一区二区| 国产精品99久久久久久宅男| 国产不卡一区视频| 91成人免费在线| 91精品国产一区二区三区蜜臀 | 在线综合亚洲欧美在线视频| 日韩天堂在线观看| 国产精品视频一二三区| 亚洲一区二区在线免费看| 午夜久久电影网| 国产乱理伦片在线观看夜一区| 成人免费黄色大片| 色88888久久久久久影院野外| 欧美一区二区三区性视频| 久久久国产精华| 伊人色综合久久天天| 久久超级碰视频| 91理论电影在线观看| 欧美成人女星排行榜| 亚洲毛片av在线| 蜜桃在线一区二区三区| 91丝袜高跟美女视频| 日韩精品在线网站| 国产精品自拍一区| 激情文学综合网| 亚洲色图一区二区| 日韩毛片高清在线播放| 麻豆91免费观看| 欧美午夜视频网站| 国产精品美女久久久久av爽李琼| 亚洲成人精品一区| av亚洲精华国产精华精华| 欧美成人艳星乳罩| 亚洲国产色一区| 99久久精品国产麻豆演员表| 精品少妇一区二区三区日产乱码| 亚洲美女视频在线观看| 国产一区二区三区久久久 | 久久午夜色播影院免费高清| 一区二区三区在线视频观看| 国产精品一二一区| 日韩欧美电影一二三| 亚洲成人精品在线观看| 色综合天天综合在线视频| 久久奇米777| 极品少妇一区二区三区精品视频| 欧美日韩国产一二三| 亚洲精品国产高清久久伦理二区| 在线免费不卡电影| 欧美国产精品劲爆| 国产激情视频一区二区三区欧美 | 91精品一区二区三区在线观看| 亚洲另类一区二区| 成人性色生活片免费看爆迷你毛片| 精品免费日韩av| 青青草一区二区三区| 欧美偷拍一区二区| 亚洲一区二区三区四区不卡| 99re成人在线| 亚洲精品高清视频在线观看| 99精品国产视频| 日韩理论在线观看| av在线一区二区三区| 国产精品视频线看| 丰满少妇久久久久久久| 中文字幕国产一区二区| 成人久久视频在线观看| 国产精品福利一区二区| 99久久夜色精品国产网站| 中文字幕一区二区三区在线观看| 成人av在线影院| 自拍偷在线精品自拍偷无码专区| 成人网在线免费视频| 国产精品久久三| 91麻豆6部合集magnet| 一区二区三区四区视频精品免费 | |精品福利一区二区三区| av中文字幕不卡| 一区二区三区中文字幕电影| 在线观看不卡一区| 日韩精品电影在线观看| 欧美电视剧在线观看完整版| 精品一区二区三区在线观看国产| 国产网站一区二区| 不卡欧美aaaaa| 亚洲国产成人av网| 欧美一二三四区在线| 狠狠色丁香婷婷综合| 国产女人水真多18毛片18精品视频| 懂色av一区二区三区免费看| 亚洲欧洲中文日韩久久av乱码| 欧美在线免费观看视频| 久久国内精品自在自线400部| 久久亚洲一区二区三区四区| 成人黄色777网| 亚洲v中文字幕| 久久免费精品国产久精品久久久久| 成人av动漫在线| 无码av中文一区二区三区桃花岛| 亚洲精品在线观看视频| 91福利小视频| 精品一区二区三区免费播放|