
COB-INF.soap.pages.xscript.getquote2.xsp Maven / Gradle / Ivy
The newest version!
<span class="http"><span class="http"><span class="coffeescript">SOAP Stock Quote Example <span class="hljs-number">2</span></span></span></span>
String symbol = request.getParameter("symbol");
if (symbol == null || symbol.equals("")) {
This page demonstrates the SOAP logicsheet for
Cocoon2. It accesses a SOAP service that provides stock quotes
and displays the result.
This example uses an inline XSLT stylesheet and an
XScript transform
instruction to extract the stock
price. Compare this with the approach used in
soap-getquote1.xsp
, which uses a sitemap XSLT
transformer to achieve the same thing.
Please enter the stock ticker:
} else {
The stock price for symbol is
}