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:
<td style="color: #ffffff; font-weight:
<% for (int i = 0;i<accounts.size();i++) { %>
<% Account a = (Account)accounts.get(i); %>
<tr style="background:#ffffff"
href="telesales?action=accountDisplay&accountId=<%= a.getId() %>"><%=
a.getName() %></a></td>
<td><%= a.getCity() %></td>
<td><%= a.getState() %></td>
<td><%= a.getPhone() %></td>
<% } %>
<% } else { %>
<span class="heading">No matching accounts found.</span>
<% } %>
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