I just can't see it. I want to do the equivalent of the following:
listValue="%{capitalize(remoteUserName)}"
inside an s:select
tag.
According to the struts documentation http://struts.apache.org/2.0.11.2/struts2-core/apidocs/com/opensymphony/xwork2/inject/util/Strings.html there exists a capitalize function. I have tried both the above and Strings.capitalize to try to capitalize remoteUserName.
Wandering through what is left of OGNL documentation at http://incubator.apache.org/ognl/, I don't see a way immediately to capitalize in this way.
So what then is the syntax to capitalize when using struts 2 tags?
EDIT:
I realize that the idea I put forth was to capitalize just the first letter of the word. Really, I would like each character in the word capitalized.