tableView.jsp
<html>
<head>
<!-- href uses "standard" ME settings: 127.0.0.1 = localhost on the Desktop and also works on the PDA -->
<a href="http://127.0.0.1:4444/me" > <img src="mimes/SAP_me.gif" alt="Back to ME Home" ></a>
</head>
<body>
<jsp:useBean id="dataBean" scope="session" class="genericsyncexample1.bean.TableViewBean" />
<!-- Disply title of the example -->
<h4><%=dataBean.getString() %></h4><br>
<!-- Table definition -->
<table width="100%" bgcolor="#D4E2EE" border="1">
<tr bgcolor=#9caece>
<!-- The entries in row 0 are used as headline of the table - so we change background color -->
<td><%=dataBean.getTableContent(0,0) %></td>
<td><%=dataBean.getTableContent(0,1) %></td>
</tr>
<%
int cols = dataBean.getTableColumns();
int rows = dataBean.getTableRows();
for(int i=1; i < rows; i++) {
// begin of a row
%> <tr> <%
for(int j=0; j < cols; j++) {
%> <td align="left" valign="top"> <%=dataBean.getTableContent(i, j)%> </td> <%
}
// end of a row
%> </tr> <%
}
%>
</table>
</body>
</html>