<%@ taglib uri='/WEB-INF/templates/jsp/tld/template.tld' prefix='jetspeed' %> <%@ page import = "org.apache.turbine.util.RunData" %> <%@ page import = "org.apache.turbine.util.Log" %> <%@ page import = "org.apache.jetspeed.webservices.finance.stockmarket.StockQuote" %> <% try{ RunData rundata = (RunData) request.getAttribute("rundata"); StockQuote[] quotes = (StockQuote[]) request.getAttribute("quotes"); String[] columns = (String[]) request.getAttribute("columns"); String jspeid = (String) request.getAttribute("js_peid"); %>
Enter symbol(s) separated with commas:
<%for (int i = 0; columns != null && i < columns.length; i++) {%> <%}%> <%for (int j = 0; quotes != null && j < quotes.length; j++) {%> <%}%>
<%=columns[i]%>
<%=quotes[j].getSymbol()%> <%=quotes[j].getPrice()%> <%=quotes[j].getChange()%> <%=quotes[j].getVolume()%>
<%} catch (Exception e) { Log.error(e); return; }%>