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 find length of a string in JSF using EL expressions.

843844Jan 23 2008 — edited Jan 23 2008
I am doing it as below for finding string length

<c:set var="test" value="#{myPageBean.myMethod.length()}" />
While evaluating the above expression,it will call getMyMethod() which will return a String. On that it will call length().
But it this throwing parsing error,

Is it different in JSF?..Pls help.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 20 2008
Added on Jan 23 2008
5 comments
147 views