%@ page
import="java.math.BigDecimal, org.apache.geronimo.samples.daytrader.*, org.apache.geronimo.samples.daytrader.util.*"
session="true" isThreadSafe="true" isErrorPage="false"%>
<%
String symbol = request.getParameter("symbol");
TradeServices tAction=null;
tAction = new TradeAction();
try {
QuoteDataBean quoteData = tAction.getQuote(symbol);
%>
<%= FinancialUtils.printQuoteLink(quoteData.getSymbol()) %> |
<%= quoteData.getCompanyName()%> |
<%= quoteData.getVolume()%> |
<%= quoteData.getLow() + " - " + quoteData.getHigh()%> |
<%= quoteData.getOpen()%> |
$ <%= quoteData.getPrice()%> |
<%= FinancialUtils.printGainHTML(new BigDecimal(quoteData.getChange())) %>
<%= FinancialUtils.printGainPercentHTML( FinancialUtils.computeGainPercent(quoteData.getPrice(), quoteData.getOpen())) %> |
|
<%
}
catch (Exception e)
{
Log.error("displayQuote.jsp exception", e);
}
%>