I'm using the following iterator in a jsp page
<%
Iterator disciplineListIt = (Iterator)
application.getAttribute("DISCIPLINE_LIST");
%>
The code that uses the iterator follows:
while(disciplineListIt.hasNext()) {
db = (DisciplineBean) disciplineListIt.next();
description = db.getDiscipline();
id = db.getDisciplineID();
sid = String.valueOf(id);
%>
<td align="left" width=50%>
<input type="checkbox" name="selDisciplineList" value="<%= sid %>" > <%=
description %>
</td>
<%
}
The 'selDisciplineList' is returned to the Action form and the checked
results are correct. However,
if there is an error during the validate() method of the Action form, the
form is re-displayed and
the output of the 'disciplineListIt' is no longer on the page (nor any other
of the application-level iterators) .
The application-level items are not defined in the Action form. I was hoping
they'd be visible whenever the page
is rendered. Any ideas?
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>