이글루스 | 로그인  



태그 : el

el

velocity라는 넘을 사용해서 xml 메일 템플릿에 el 표현식을 사용하는데...
# foreach($EmpBean in $EmpBeanList)
${fn:substring($EmpBean.updateDate,0,4)}

이런 식의 빈으로 날짜 YYYY를 출력해야 하는데...
전혀 fn:substring 이 먹히지 않는다... 이걸로.. 몇시간째 했는지... ㅠ.ㅠ
아무래도 내일.. .상의해서 다른 방법을 찾아봐야 할거 같다.
정말이지.. 이런것 조차 못하는.. 내가 한심하다.

contains() --> ${fn:contains('Hello', 'el')}<br>
containsIgnoreCase() --> ${fn:containsIgnoreCase('HELLO', 'el')}<br>
endsWith() --> ${fn:endsWith('Hello', 'llo')}<br>
escapeXml() --> ${fn:escapeXml('1<>3')}<br>
indexOf() --> ${fn:indexOf('Hello', 'el')}<br>
join()/split() --> ${fn:join(fn:split('/1/2/3/4/5', '/'), ':')}<br>
length() --> ${fn:length('Hello')}<br>
replace() --> ${fn:replace('Hello', 'H', 'J')}<br>
startsWith() --> ${fn:startsWith('Hello', 'He')}<br>
substring() --> ${fn:substring('Hello', 2, 4)}<br>
substringAfter() --> ${fn:substringAfter('Hello', 'el')}<br>
substringBefore() --> ${fn:substringBefore('Hello', 'el')}<br>
toLowerCase() --> ${fn:toLowerCase('HELLO')}<br>
toUpperCase() --> ${fn:toUpperCase('hello')}<br>
trim() --> ${fn:trim('  hello  ')}<br>

</body></html>

This outputs the following...

contains() --> true
containsIgnoreCase() --> true
endsWith() --> true
escapeXml() --> 1<>3
indexOf() --> 1
join()/split() --> 1:2:3:4:5
length() --> 5
replace() --> Jello
startsWith() --> true
substring() --> ll
substringAfter() --> lo
substringBefore() --> H
toLowerCase() --> hello
toUpperCase() --> HELLO
trim() --> hello

by 나림 | 2007/09/27 16:55 | 기타 | 트랙백 | 덧글(0)

◀ 이전 페이지          다음 페이지 ▶