📄 quickquote.jsp
字号:
<%--
* @author Elangovan
* @version 1.0
*
* Development Environment : Oracle9i JDeveloper
*
* Name of the File : QuickQuote.jsp
*
* Creation/Modification History :
*
* Elangovan 26-Apr-2002 Created
*
* Overview of Application :
*
* This JSP displays the latest Stock Rate for a given symbol.
*
*
--%>
<%-- Set Context type and characterset --%>
<%@page contentType="text/html;charset=WINDOWS-1252" language="java" %>
<%@page import="java.util.ArrayList" %>
<%@page import="oracle.otnsamples.ibfbs.toplink.Stockrate" %>
<html>
<head>
<title>OTN FBS : Quick Quote service</title>
<meta http-equiv="Content-Type" content="text/html; charset=WINDOWS-1252">
<link rel="stylesheet" href="includes/contents.css" type="text/css">
</head>
<body text="#000000" bgcolor="#FFFFEA" >
<center>
<h3 style="Text-Decoration : None" class="newsText" >OTN eZee Trading</h3>
</center>
<table width="100%" height="80%" border="1" bordercolor="#008000"
cellspacing="0" cellpadding="0">
<tr>
<td align="center">
<%
// Get the stock rate
Stockrate quote = (Stockrate) session.getAttribute("GETQUOTE.RESPONSE");
session.removeAttribute("GETQUOTE.RESPONSE");
if(quote == null) {
// If no data, then invalid symbol
%>
<font face="Verdana, Times New Roman, Times, serif" color="#FF0000">
<b>Invalid Symbol</b>
</font>
<%
} else {
%>
<br>
<b><font face="Verdana, Times New Roman, Times, serif" color="#990000">
On <%=quote.getStockdate()%>,
<br>
<%=quote.getSymbol()%> Stocks quoted
<br>
Low Price : $<%=quote.getLowprice()%>
<br>
High Price : $<%=quote.getHighprice()%>
</font></b>
<% } %>
<form name="frmClose" >
<img src="images/close.gif" onMouseUp="window.close();" value=" Close " >
</form>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -