Java Reference
In-Depth Information
L
ISTING
22.4
index.jsp
<html>
<head>
<title>Sams Online Stock Trader</title>
</head>
<body bgcolor=”#FFFFFF”>
<table width=”100%” border=”0”>
<tr>
<td colspan=”2”><jsp:include page=”titlebar.jsp” flush=”true” /></td>
</tr>
<tr>
<td width=”75”><%@ include file=”navigation.jsp” %></td>
<td valign=”top” >
<div align=”center”>
<b>Welcome to the Sams Online Stock Trader</b>
</div>
</td>
</tr>
</table>
</body>
</html>
22
Get Quote View
The Get Quote View will be represented by the file
getquote.jsp
. It will display the received
stock's last trading, bid, and ask prices. An image of the Get Quote View is in Figure 22.5.
The source for the Get Quote View is in Listing 22.5.
L
ISTING
22.5
getquote.jsp
<html>
<head>
<title>Sams Online Stock Trader</title>
</head>
<body bgcolor=”#FFFFFF”>
<table width=”100%” border=”0”>
<tr>
<td colspan=”2”><jsp:include page=”titlebar.jsp” flush=”true” /></td>
</tr>
<tr>