Struts2 中如何获得子字符串

Struts2 中的 substring 如何使用?

可以使用下面的代码使用:
c:out value="${fn:substring(action.firstName, 0, 5)} "/>