Struts2 에서는 아래와 같은 방법으로 사용 가능합니다.
src/defaultConfigure.properties 에 format 을 등록.
# number format
format.qty={0,number, ,###,###,###}
JSP 페이지에서는 다음과 같이 호출합니다.
<s:text
name="format.qty"><s:param name="value"
value="%{10000}"/></s:text>
결과는 10,000 과 같이 출력됩니다.
'JAVA > JSP_Servlet' 카테고리의 다른 글
| [펌]struts2 action 선언시 동적 파라메터 이용 방법. (0) | 2008/12/01 |
|---|---|
| struts2 tag lib 로 number format 지정 (0) | 2008/11/27 |
| EOFException: Exception loading sessions from persistent storage (0) | 2008/11/26 |
| Struts2 ResourceBundle 사용하기. (0) | 2008/11/26 |
| java windows authentication (0) | 2008/07/23 |
| [펌] Ajax Progress + commons fileupload (0) | 2007/12/23 |
