• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to check if a page exists on another site  RSS feed

 
Adrian Airmil
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a jsp that will draw a list of links. These links will be to various pages outside my site. But before i draw the links on the page, i would like to verify that the page indeed exists on the other site and will not return a 404. Not sure if this can be done. If possible, would appreciate someone pointing me in the right direction.
 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This could result in a very expensive JSP hit.
Are you planning on hitting these pages with a test every time a user requests your JSP?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!