Hi,
This question might be really basic, but I just 2 weeks old as a servlet
developer.
I have written a servlet which serves as a stock quote wrapper, ie, if you
type a stock ticker, say MSFT in the box provided, the servlet sends the
request to yahoo-finance, and gets the results. This servlet is doing
nothing terrific...the same thing can be done by going to Yahoo-finance
directly!
However, I want this servlet to go to that yahoo-finance page, extract
that specific stock quote, compare it with a threshold value, and generate
an alert if the stock has fallen below the threshold.
So I need to know two things: How to extract HTML from the Yahoo-finance
page using a servlet?<Then I will parse it to get the stock quote>
#2 How do I make this servlet repeat the stuff every 1 minute(say) to
constantly keep monitoring the stock? <will a 'C' style loop, like
while(1) do?>
I *really* appreciate your help in this regard!
Thanks in advance!
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html