D
da_rod_father
I am getting an exception at runtime when I try to cast a class of type
that i created to an ArrayList:
<% ArrayList secs = help.getList();
if (secs != null && secs.size() >0) {
for ( int i = 0; i < secs.size(); i++) {
PropertyFileSectionData secName = (PropertyFileSectionData)
secs.get(i);
%>
It crashes everytime I try to render this line in a jsp:
<label><%=secName.getSectionName() %></label></td>
I get a java.lang.ClassCastException: java.lang.String and it complains
that java.lang.String it is not comparable to my class I created(
PropertyFileSectionData ). Could anyone point me in the right
direction to debug this?
thx
that i created to an ArrayList:
<% ArrayList secs = help.getList();
if (secs != null && secs.size() >0) {
for ( int i = 0; i < secs.size(); i++) {
PropertyFileSectionData secName = (PropertyFileSectionData)
secs.get(i);
%>
It crashes everytime I try to render this line in a jsp:
<label><%=secName.getSectionName() %></label></td>
I get a java.lang.ClassCastException: java.lang.String and it complains
that java.lang.String it is not comparable to my class I created(
PropertyFileSectionData ). Could anyone point me in the right
direction to debug this?
thx