Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Jigar Naik
Ranch Hand
Posts: 762
  • Mark post as helpful
  • send pies
  • 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...
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • 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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic