Make a URLConnection to the HTML page's URL. Get the InputStream on the connection, read it in as a String. Once you have the String, simply parse it for the tag, e.g. String.indexOf("<input type=\"hidden\" name=\"somename\" value=\"").
 
---------------------------
Kevin Baynes
Seagull Software
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Satish Verma
Sent: Tuesday, July 31, 2001 9:08 AM
To: [EMAIL PROTECTED]
Subject:

can someone tell me :
 
 how to extract elements from an html file and make it avaiable to ANT Build file as a property .
 
thanks
 
satish

Reply via email to