This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes Access stock quotes from servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Servlets
Bookmark "Access stock quotes from servlet" Watch "Access stock quotes from servlet" New topic

Access stock quotes from servlet

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I have a WML page which gets directed to a servlet.The servlet points to the yahoo's WAP site to get stock quotes. How can I get the quote information from the WAP site ((i.e. response from the WAP site) into a variable, so that I can manipulate the data & get rid of unwanted information?
Right now I'm able to get the stock quotes, but there are some links like Disclaimer,etc. which I do not want to display.
manav kher
Ranch Hand

Joined: Nov 21, 2000
Posts: 98
well you have to send a http request from your servlet to the yahoo site (i don't know what the request looks like for wap) and then parse the information to get the the request and parsing is done by the servlet and then wml data is returned with the quotes embedded into it
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Access stock quotes from servlet
It's not a secret anymore!