2011-05-14 80 views

回答

1

編寫Java客戶端應用程序,做類似這...

URL yahoo = new URL(THE URL OF YOUR JSP PAGE); 
URLConnection yc = yahoo.openConnection(); 
BufferedReader in = new BufferedReader(new InputStreamReader(yc.getInputStream())); 

String inputLine; 
String html; 

while ((inputLine = in.readLine()) != null) 
    html += inputLine + "\n"; 
in.close(); 

// DO SOMETHING WITH THE HTML STRING