• 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

information retrieval from JSPs

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
I need to get hyperlinks from html documents through JSPs located in external web servers, in order to monitor modifications in web content.
From static html it's easy, but i'm a little confused when it envolves server pages located in servers that i do not have unlimited access.
regards,
Alexandre Bairos

 
author
Posts: 3252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Alexandre Bairos:
Hi!
I need to get hyperlinks from html documents through JSPs located in external web servers, in order to monitor modifications in web content.


If I understand you correctly, all you want to do is fire a HTTP GET request at those servers, and scan the HTML returned for hyperlinks. Right? Look into java.net.URL.getContent() for your requests. To extract the URLs, a simple string scan (java.lang.String.indexOf()) might be adequate.
This will work irrespective of the type of source (flat HTML, JSP, ASP, PHP, whatever). But, database-driven web pages are virtually impossible to check thoroughly. If the links you want to scan may come from the database, you're stuck.
- Peter
 
I yam what I yam and that's all that I yam - the great philosopher Popeye. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic