Stock Quote Sample


This sample demonstrates a Pervasive Computing solution using WebSphere Application Server. It can be called from any of the following types of clients:

Client Type Data Type Returned
HTML HTML
Speech VXML
Wireless WML

Run this sample

 


How this sample works:

This sample has:

  • An input form to enter data
  • A Java servlet that reads the input data, determines the Markup Language and stock symbol specified in the request and stores it in the StockQuoteBean
  • A Java bean (StockQuoteBean) which accesses online data to get the stock price and correctly format the results
  • Several JavaServer Pages (JSP) that format and display the Bean results.

How to use this sample on your web page:

  • Create an HTML form, specify the METHOD as "post", and use this tag as the ACTION url:
    /webapp/examples/StockQuote
  • Developer's Notes