Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- JPA
- custom filter
- guvnor
- Drools Fusion
- rember me
- jquery serialize
- Hudson
- jstl
- maven
- java tip
- spring security
- Spring
- CEP
- gwt-ext
- COC
- jquery
- ibatis
- jenkins
- spring jpa
- bootstrap jquery datepicker
- @SqlResultSetMapping
- drools
- SVN
- spring transaction
- MySQL
- GEventEvaluator
- zabbix
- gwt
- JBoss Seam
- querydsl
Archives
- Today
- Total
봉 블로그
Freemarker Tip 본문
request parameter 가져오기
${RequestParameters.aaa} or ${RequestParameters.['aaa']}
request attributes 가져오기
${Request.aaa} or ${Request.['aaa']}
Default value operator : !
그 값이 없을때 default value를 명시할수 있다.예를 들어 mouse 에 값이 없을때
![]() |
|
![]() | |
![]() |
![]() |
![]() |
The output will be:
![]() |
![]() |
![]() | |
![]() |
|
![]() |
또다른 예
![]() |
|
![]() | |
![]() |
![]() |
![]() |
The output will be:
![]() |
![]() |
![]() | |
![]() |
|
![]() | |
![]() |
![]() |
![]() |
Escape Example:
![]() |
![]() |
![]() | |
![]() |
|
![]() | |
![]() |
![]() |
![]() |
is actually equivalent to:
![]() |
![]() |
![]() | |
![]() |
|
![]() | |
![]() |
![]() |
![]() |
null값 체킹
<#if param1??>
// param1은 null아 아니다.
</#if>
List 관련 작업
<#list list as item>
<#if (item_index > 0)> // 2번째 item 부터... </#if>
<#if item_has_next> // 다음 item 이 있다면... </#if>
</#list>
태그 라이브러리 사용법
http://freemarker.sourceforge.net/docs/pgui_misc_servlet.html#autoid_55
Map 처리
<#list condition.conditionValueMap?keys as key>
${condition.conditionValueMap[key]}
</#list>
List 관련 작업
<#list list as item>
<#if (item_index > 0)> // 2번째 item 부터... </#if>
<#if item_has_next> // 다음 item 이 있다면... </#if>
</#list>
태그 라이브러리 사용법
http://freemarker.sourceforge.net/docs/pgui_misc_servlet.html#autoid_55
Map 처리
<#list condition.conditionValueMap?keys as key>
${condition.conditionValueMap[key]}
</#list>