Getting Text from a URL
try {
// Create a URL for the desired page
URL url = new URL("http://hostname:80/index.html");
// Read all the text returned by the server
BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
String str;
while ((str = in.readLine()) != null) {
// str is one line of text; readLine() strips the newline character(s)
}
in.close();
} catch (MalformedURLException e) {
} catch (IOException e) {
}
this code gives us the html formatted text but whr in i want the acctual text
how do i get it plz reply to me as soon as possible to afreaz@gmail.com
I tried this and it only works if the URL is on the same domain as the JSP page. Does anyone know a workaround for that problem?
Thank you!
haha,exactly what i wanted,thanks a lot.keep it up!!
Zero work gloves inventory leather gloves and hair products operation of truck crane foreign trade mobile crane is the road sweeper last diesel generator resort.
The first Gucci handbags to do Discount gucci handbags an English 网店代理 online 网店代理 shop, rent 男装批发 server space 女装批发 for the 香港機場接送服務 United States香港机场接送服务.