正确用法:
<s:if test="#parameters.lang[0] == 'zh'">
...
</s:if>
or
<s:if test="%{#parameters.lang[0] == 'zh'}">
...
</s:if>
错误用法:
<s:if test="#parameters['lang'] == 'zh'">
...
</s:if>
但是如下代码都是正确的:
<s:property value="#parameters.lang[0]"/>
<s:property value="#parameters['lang']"/>