Posted By:
Anonymous
Posted On:
Tuesday, July 23, 2002 03:18 AM
I have been unsuccessfully trying to set JavaBean ids for a series of objects with a for loop as follows: <% int rows = Sign.getLineNumber(); %> <% for (int y=0; y <%=y%>" scope="session" class="signs.LineBean" /> <% } %> I would like successive LineBean objects to be given ids of: LineBean0, LineBean1, LineBean2, LineBean3 etc but there are always problems with this part of the code at runtime: id="LineBean <%=y%>" I have tried as many methods of incorporating the variable y into the id as I can think of such as id="LineBean+y"
More>>
I have been unsuccessfully trying to set JavaBean ids
for a series of objects with a for loop as follows:
<% int rows = Sign.getLineNumber(); %>
<% for (int y=0; y
<%=y%>" scope="session"
class="signs.LineBean" />
<% } %>
I would like successive LineBean objects to be given ids of:
LineBean0, LineBean1, LineBean2, LineBean3 etc but there
are always problems with this part of the code at runtime:
id="LineBean
<%=y%>"
I have tried as many methods of incorporating the variable
y into the id as I can think of such as
id="LineBean+y"
id="LineBean" + y
etc but am getting no further.
I would be grateful if anyone could help.