Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to get String length using JSTL Expression Language?

843836Mar 25 2004 — edited Jun 12 2006
Newbie question: Is it possible to get the length of a String using JSTL Expression Language?

e.g. I have <c:set var="s" value="somechangingstring"/> . Is there a way to find the length of s? ${s.length} doesn't work.

I've been searching high and low through my JSTL books but couldn't find any.

If there is no built in operator, what would be the easiest and cleanest way to get the length of a String?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 10 2006
Added on Mar 25 2004
8 comments
721 views