EDIT
From 2.3.20 and higher, static method access won't work anymore, even if activated in the configuration.
For static methods access you need:
in Struts.xml
<constant name="struts.ognl.allowStaticMethodAccess" value="true"/>
in your JSP
<s:property value="@com.your.full.package.Classname@methodName(optionalParameters)" />
But as pointed out by rees, this should be avoided if not strictly necessary, because it's not a best practice.
In your specific case, i guess the Object containing ["String1","String2",...] is a List, or a Vector, or something like this.
Then all you need in your JSP is the <s:iterator>
tag like this:
<s:iterator name="yourObjectContainingAListOfString">
<s:property />
<br/>
</s:iterator>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…