Java Reference
In-Depth Information
<table border="0" cellspacing="1" cellpadding="5"
bgcolor="#CCCCCC" width="50%">
<tr bgcolor="#407BA8">
<td style="color: #ffffff; font-weight: bold;">Name</td>
<td style="color: #ffffff; font-weight: bold;">City</td>
<td style="color: #ffffff; font-weight:
bold;">State</td>
<td style="color: #ffffff; font-weight:
bold;">Phone</td>
</tr>
<% for (int i = 0;i<accounts.size();i++) { %>
<% Account a = (Account)accounts.get(i); %>
<tr style="background:#ffffff"
onMouseOver="this.style.background='#eeeeee';"
onMouseOut="this.style.background='#ffffff';">
<td><a
href="telesales?action=accountDisplay&accountId=<%= a.getId() %>"><%=
a.getName() %></a></td>
<td><%= a.getCity() %></td>
<td><%= a.getState() %></td>
<td><%= a.getPhone() %></td>
</tr>
<% } %>
</table>
<% } else { %>
<span class="heading">No matching accounts found.</span>
<% } %>
<p/>
</body>
</html>
The Account Display view (Figure 4-4) shows the details of the account, a link to
create a new sales opportunity, and a list of all opportunities for the account in
Bigtable. Listing 4-4 contains the code for this page.
 
Search WWH ::




Custom Search