I'm trying to figure out how iterate over a collection of parameters to pump
into a text tag. This is what I would like to do:
<s:text name="%{eventtype.i18nkey}">
<s:iterator value="messageParameters">
<s:param><s:property/></s:param>
</s:iterator>
</s:text>
But it blows up and writes some stuff to the tomcat logs that appears to
suggest I'm using the tag wrong ;)
java.lang.NullPointerException
at
com.opensymphony.xwork2.util.TextParseUtil.translateVariables(TextParseUtil.java:168)
at
com.opensymphony.xwork2.util.TextParseUtil.translateVariables(TextParseUtil.java:115)
at
com.opensymphony.xwork2.util.TextParseUtil.translateVariables(TextParseUtil.java:88)
at org.apache.struts2.components.Component.findValue(Component.java:381)
at
org.apache.struts2.components.Component.findString(Component.java:203)
at org.apache.struts2.components.Param.end(Param.java:121)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]