Hi,
 
I try on my jsp page iterate an indexed property.
I get this exception:
"javax.servlet.ServletException: Invalid indexed property 'routingData[<%=s%>]'"
 
My code:
<%
int counter = 0;
String s = null
s.valueOf(counter);
for (int i = 0; i < myRoutingList.getRouteElements().size(); i++) {
%>
 
<tr>
<td class="input">
<html:text property="routingData[<%=s%>].timeOfDayStart" size="6"/></<td class="input">
<html:text property="routingData[<%=s%>].timeOfDayStop" size="6"/>
</td>
 </tr>
 <%
 counter++;
 s = s.valueOf(counter);
 }
  %>
 
I tried both with counter as an int and a string . No one seems work.
Do somebody know what�s is the problem?
 
Thanks,
Katarina
 

<%=s%>
 

Reply via email to