Search code examples
javajsf-2java-ee-5

How can I truncate string in JSF?


How can I truncate string in JSF2 ?
Say I have a really long name and I only want to display 5 characters how can I do that? I know I use backing bean what any better options.


Solution

  • use JSTL fn:substring()