bonjour


j'ai le code suivante:


Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import java.net.*;
import java.util.Properties;
import java.io.*;
 
 
 
public class URLReader {
    public static void main(String[] args) throws Exception {
    	Properties sysProp = System.getProperties();
		System.setProperties(sysProp);
		System.setProperty( "https.proxyHost", "" );
		System.setProperty( "https.proxyPort", "" );
 
    System.out.println("cococoo");	
	URL verisign = new URL("http://www.xxx.com");
	System.out.println("cgfcgfcgfcgfv");
 
 
 
	BufferedReader in = new BufferedReader(
				new InputStreamReader(
				verisign.openStream()));
 
	String inputLine;
 
	while ((inputLine = in.readLine()) != null)
	    System.out.println(inputLine);
 
	in.close();
	System.out.println("finnnnnnnnnn");
    }
 
}

je veux récupérer le résultat de ce code via une servlet dans une page html dans unebalise <TEXTAREA>

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 
<TITLE>pop up</TITLE>
</HEAD>
<BODY>
 
<center  style="width:200px;height:300px;border:1px dotted;">
 
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#008080" width="500" id="AutoNumber6" height="1">
	<tr>
		<td bgcolor="#008080" align="left"><b> <font face="Verdana" size="2"
			color="#FFFFFF">&nbsp;Test</font> </b>
		</td>
 <TR>  <TD height="36">&nbsp; &nbsp; &nbsp;<b> Connexion avec Reuters :</b></TD> </TR>
 
       	<TR>	  <TD height="20">&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<b>Type de fichier :<b></TD>  </TR>
 
<td >&nbsp; &nbsp; &nbsp; <TEXTAREA style="overflow: hidden" name="Teste" rows="8" cols="60"></TEXTAREA> </td>
 
</tr>
</table>
 
</center>
<br>
<center>
<A href="javascript:window.close();">Fermer la fenêtre</A>
</center>
</BODY>
</HTML>