?? tutorialstockquote8.jsp
字號:
<%@ 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");
%>
<FORM METHOD="POST">
<INPUT TYPE="hidden" NAME="js_peid" VALUE="<%=jspeid%>">
Enter symbol(s) separated with commas: <input name="symbols" type="TEXT"><INPUT TYPE="SUBMIT" NAME="refresh" VALUE="Get Quotes">
</FORM>
<table>
<tr>
<td>
<table border="true" cellspacing="1" cellpadding="3">
<tr>
<%for (int i = 0; columns != null && i < columns.length; i++) {%>
<TH><%=columns[i]%></TH>
<%}%>
</tr>
<%for (int j = 0; quotes != null && j < quotes.length; j++) {%>
<tr>
<TD><%=quotes[j].getSymbol()%></TD>
<TD><%=quotes[j].getPrice()%></TD>
<TD><%=quotes[j].getChange()%></TD>
<TD><%=quotes[j].getVolume()%></TD>
</tr>
<%}%>
</table>
</td>
</tr>
</table>
<%} catch (Exception e) {
Log.error(e);
return;
}%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -