c:set var="tempStr" value="I love Java an www.java2s.com"
The length of the test String: ${fn:length(tempStr)}
Does the test String contain "test"? ${fn:contains(tempStr,"test")}
Putting the String into upper case using fn:toUpperCase(): ${fn:toUpperCase(tempStr)}
Splitting the String into a String array using fn:split(), and returning the array length: ${fn:length(fn:split(tempStr," "))}
No comments:
Post a Comment