Hi All,
I have a jsp page that is not returning a table row after java code runs.
The page drops my table cell after my for loop and I can not figure out why.
HTML code
Once the loop is complete, the HTML will not pick up the next table row "Items that are ...".
When I do a view source in my browser, it returns:
As you can see, the rest of my HTML is missing.
Can anyone please provide me with some ideas as to why this is happening. I don't see anything wrong with the code -- obviously there is.
Comments most welcome.
TIA
Tim
I have a jsp page that is not returning a table row after java code runs.
The page drops my table cell after my for loop and I can not figure out why.
HTML code
Code:
<table border align="center">
<%
if(rptType.equals("PAWAR")) {
for(int i = 0;accounts.size()>1;i++) {
String acct = (String)accounts.elementAt(i);
Vector tmpRecs = (Vector)wires.get(acct);
%>
<tr>
<td>Count of my returned rows: <%= i + 1 %></td>
</tr>
<%
}
%>
<tr>
<td>Items that are NOT marked with a confirmed status are subject to verification and adjustment.</td>
</tr>
</table>
<%
}
%>
</BODY>
</HTML>
When I do a view source in my browser, it returns:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<title></title>
<LINK rel=stylesheet type="text/css" href="js/wire-style.css" title="Standard ISC Style">
</HEAD>
<BODY>
<table border align="center" width="100%">
<tr> <td>Count of my returned rows: 1</td>
</tr>
<tr>
<td>Count of my returned rows: 2</td>
</tr>
<tr>
<td>Count of my returned rows: 3</td>
</tr>
<tr>
<td>Count of my returned rows: 4</td>
</tr>
<tr>
<td>Count of my returned rows: 5</td>
</tr>
Can anyone please provide me with some ideas as to why this is happening. I don't see anything wrong with the code -- obviously there is.
Comments most welcome.
TIA
Tim