• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet

 
H Kwan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic