📄 invokequoteservice.jsp
字号:
<%--
* @author Elangovan
* @version 1.0
*
* Development Environment : Oracle9i JDeveloper
*
* Name of the File : InvokeQuoteService.jsp
*
* Creation/Modification History :
* Elangovan 18-Aug-2003 Created
*
* Overview of Application :
*
* This JSP displays a form for the user to try/invoke the
* Stock quote JAX-RPC web service.
*
--%>
<%@page contentType="text/html;charset=WINDOWS-1252" language="java" %>
<html>
<head>
<title>OTN Financial Brokerage System : Stock Quote Web Service</title>
<meta http-equiv="Content-Type" content="text/html; charset=WINDOWS-1252">
<link rel="stylesheet" href="includes/contents.css" type="text/css">
<script language="JavaScript">
function submitForm(eventname) {
formObj = document.INVOKEFORM;
if(eventname=='GETWSQUOTE') {
if (formObj.SYMBOLS.value == "") {
alert("Enter a non-empty value for Symbols");
return;
}
}
formObj.EVENTNAME.value=eventname;
formObj.submit();
}
function writeDate() {
var today = new Date();
//Thursday, April 09, 2002,06:43 FORMAT
document.write(today.toLocaleString());
}
</script>
</head>
<body bgcolor="#FFFFEA">
<jsp:include page="TitleGifs.jsp" flush="TRUE"/>
<form name="INVOKEFORM" action="controllerservlet" method="post">
<input type="hidden" name="EVENTNAME" >
<table width="100%" border="0" bgcolor="#008000" cellpadding="0" cellspacing="0">
<tr>
<td align="left" class="midTime"> <Script>writeDate();</Script></td>
<td align="right"> <span class="midTime"> </span> </td>
</tr>
</table>
<table width="100%" border="1" cellpadding="0" cellspacing="0"
bgcolor="#FFFFEA" bordercolor="#008000" height="75%">
<tr><td valign="top"><table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td bordercolor="#FFFFEA" align="center" valign="bottom" bgcolor="#FFFFEA">
<br>
<b><font face="Verdana, Times New Roman, Times, serif" color="#008000">
Try the OTN eZee Trading Stock Quote Web Service
</font></b> </td>
</tr>
<tr>
<td bordercolor="#FFFFEA" bgcolor="#FFFFEA"> </td>
</tr>
<tr>
<td align="center">
<font face="Verdana, Times New Roman, Times, serif" color="#008000">
The following operations are supported.
For a formal definition, please review the
<%
// Build the WSDL url
String serviceURL = "http://"+request.getServerName()+":"+request.getServerPort()+
"/fbsws/StockQuoteServicePort?WSDL";
%>
<a href="<%=serviceURL%>"><span class="linkText">Service Description</span></a>
</font>
</td>
</tr>
<tr>
<td bordercolor="#FFFFEA" bgcolor="#FFFFEA"> </td>
</tr>
<tr>
<td bordercolor="#FFFFEA" bgcolor="#ffffea"> <br>
<ul>
<li><font face="Verdana, Times New Roman, Times, serif" color="#008000">
getStockQuote - Retrieves the stock quote for the specified
list of stock symbols</font></li>
</ul>
<input type="text" name="SYMBOLS" size="40">
<A href="javascript:submitForm('GETWSQUOTE');"><span class="linkText">Invoke</span></A>
<br>
( Tip : You can provide multiple stock symbols separated using comma(,); example orcl,sunw,msft )
<br><br>
</td>
</tr>
<tr>
<td align="center">
<br><br><br>
<A href="javascript:submitForm('FIRSTPAGE');"><span class="linkText">Home</span></A>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<jsp:include page="Footer.jsp" />
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -