How can I include stock quotes in my JSP pages?

John Zukowski

Yahoo offers a resource that sends a response of one symbol per line (no HTML), with whatever options you want like price, volume, etc. You can then parse the response to display these settings. This is demonstrated in an article over at CNET (http://www.builder.com/Programming/JSP/ss05.html. The basic URL to ask for a price is of the form: http://quote.yahoo.com/download/javasoft.beans?SYMBOLS=" + symbol + "&format=nl", where symbol would be a comma delimeted list of symbols. You can try out the different letters of the alphabet to see the different stock information you can can back (n is name and l is last price).