I am using
struts 1.1 and I want to have a multipurpose
jsp. I am getting the ClassCastException when I try to do something similar to the following:
<%
String dynamicType = "com.myorg.myClass"; %>
<logic:iterate name="TableActionForm" property="genericVos" id="tablelist" indexId="indexNum" type="<%=dynamicType%>">
The string evaluates properly elsewhere on the page and copying the value into the iterate tag (so it is not dynamically generated) works fine - it is the correct class and the iterate works properly.
The struts-logic.tld says that the type property has a rtexprvalue=true. The plan was to pass in the type of the class as a Tiles attribute but I can't even get the above to work. Has anyone done something like this, is there another way to do this?
Thanks,
Scott