• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Flying Through a page...reading the content...

 
Ranch Hand
Posts: 763
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

I want to do something like,

Request for perticuler page.. than read the contents of that page... store it somewhere in a String variable

than search for perticuler name value pair in that string if the value is grater than perticuler value than that value will be mailed to perticuler person.

how do i do it ?

The Page which i want to request is http://localhost:8080/status

The String which i want to store is



The name value pair which i want to search in the string is



And if the value is grater than 70 than mail should go to System Admin

Please Advice me on same...I know how to request the page and how to send mail but i dont have any idea of how to read the content of the page...

The application should check the Thread Value every 5 mins... that can be done by putting the delay...or some michenism...
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try a Google search with keywords "Screen Scrape" or "screenscrape"

Moving to Sockets and Internet Protocols (not a servlet question).
 
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
One way to do this is to create a URLConnection, connect, get the InputStream, wrap the stream by the BufferedReader, and search for the key as a line is read.
 
reply
    Bookmark Topic Watch Topic
  • New Topic