Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
fn:length(mystring)文字列の長さ/文字数を見つけるために使用できます。
fn:length(mystring)
整数の長さ/桁数を見つけるにはどうすればよいですか?
たとえば、int が 3000 の場合、4 を返したいとします。
Stringの本体として評価することにより、最初に変換し<c:set>ます。
String
<c:set>
<c:set var="intAsString">${someInt}</c:set>
次に、通常の方法で長さを取得できます。
${fn:length(intAsString)}