Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > URL verification
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 4th June 17:23
deginge
External User
 
Posts: 1
Default URL verification



Hello,

To start, this isn't technically homework, my lecturer asked me to ask
you guys!

One part of a system I'm trying to dsign will involve checking to see
if a URL is valid and subsequently asking questions of that page for
info like size and date cretaed. I hope to use JSP.

First, I want to validate that the URL exists
ie: http://www.something.com/somedir/subdir/file.html"


Can these things be done? If so, any sugestions? Spare change?

Ray
  Reply With Quote


  sponsored links


2 5th June 07:28
erwin moller
External User
 
Posts: 1
Default URL verification



Hi Ray,

Spare change? :-)

Yes it can be done easily with Java, but this newsgroup isn't the most
suitable I think. It ends with .javascript. :P

In Java, just try to create an URL, and see if you get an exception.

Have a look at the API:
http://java.sun.com/j2se/1.4.2/docs/api/java/net/URL.html

Good luck,
Erwin Moller
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666