๊ด€๋ฆฌ ๋ฉ”๋‰ด

๋ชฉ๋กDeveolpment Study๐Ÿ—‚๏ธ/JSP (19)

bom's happy life

[JSP] fmtํƒœ๊ทธ <fmt:formatNumber>(์„ธ์ž๋ฆฌ๋งˆ๋‹ค์‰ผํ‘œ)

//์ˆ˜์น˜ ๋ฐ์ดํ„ฐ๋ฅผ ํ˜•์‹์— ๋”ฐ๋ผ ํ‘œํ˜„ํ•˜๊ธฐ ์œ„ํ•œ ํƒœ๊ทธ ์†์„ฑ ํ‘œํ˜„์‹ ํƒ€์ž… ์„ค๋ช… value true String ๋˜๋Š” Number ํ˜•์‹ํ™”ํ•  ์ˆ˜์น˜ ๋ฐ์ดํ„ฐ type true String ์ˆซ์ž, ํ†ตํ™”, ํผ์„ผํŠธ ์ค‘ ์–ด๋А ํ˜•์‹์œผ๋กœ ํ‘œ์‹œํ•  ์ง€ ์ง€์ • pattern true String ์‚ฌ์šฉ์ž๊ฐ€ ์ง€์ •ํ•œ ํ˜•์‹ ํŒจํ„ด currencySymbol true String ํ†ตํ™” ๊ธฐํ˜ธ. ํ†ตํ™” ํ˜•์‹(type=“currency”)์ผ ๋•Œ๋งŒ ์‚ฌ์šฉ. groupingUsed true boolean ์ฝค๋งˆ์™€ ๊ฐ™์ด ๋‹จ์œ„๋ฅผ ๊ตฌ๋ถ„ํ•  ๋•Œ ์‚ฌ์šฉํ•˜๋Š” ๊ธฐํ˜ธ๋ฅผ ํ‘œ์‹œํ•  ์ง€์˜ ์—ฌ๋ถ€๋ฅผ ๊ฒฐ์ •. true์ด๋ฉด ๊ตฌ๋ถ„๊ธฐํ˜ธ ์‚ฌ์šฉ, false์ด๋ฉด ์‚ฌ์šฉ ์•ˆํ•จ. ๊ธฐ๋ณธ ๊ฐ’์€ true. var false String ํ˜•์‹ ์ถœ๋ ฅ ๊ฒฐ๊ณผ ๋ฌธ์ž์—ด์„ ๋‹ด๋Š” scope์— ํ•ด๋‹นํ•˜๋Š” ๋ณ€์ˆ˜ ์ด๋ฆ„. scope ..