I have written JSP that I used with many actions. It has a link with parameters
The link:
Well that line <s:param name="suppressEmptyParameters" value="true"/>
doesn't make sense, and it should be removed from the <s:param>
docs.
The <s:param name="type" value="%{type}" suppressEmptyParameters="true"/>
is correct way of suppressing empty parameters and it isn't working with not String-s because of the bug WW-4275.
Meanwhile, until the next version is released, you can use toString()
method to avoid ClassCastException
exception.
<s:param name="type" value="type.toString()" suppressEmptyParameters="true"/>