my dog learned polymorphism*
The moose likes Servlets and the fly likes Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet" Watch "Servlet" New topic
Author

Servlet

H Kwan
Greenhorn

Joined: Feb 26, 2005
Posts: 1
Can anyone show me how to use servlet to read a specific website's content and then get a specific value I want to my program? Say, for example, I want to read the www.bbc.co.uk homepage and retrieve today's weather value.

Thanks!
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

I think if you double check the Met Office's website (where the BBC's weather data comes from) you'll dicover the legal reason why you can't do this. At least without paying the Met Office (presuming you want to republish their content).
[ April 25, 2005: Message edited by: Paul Sturrock ]

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Do a Google search with the keywords "screen scraping".
Some sites may offer weather information as a webservice.
Also Google with the term "RSS".

None of these technologies or techniques are specific to servlets.
Servlets are a Server Side technology for you to publish your own application or content.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
 
subject: Servlet
 
Similar Threads
Keeping track of the requests in a servlet
if you couldn't use twitter
Dasavataram-Costliest Indian movie
AS #1.....Asphalt Association
jumping spiders v brown recluse spiders