Bonjour, je veux afficher un tableau dans ma page JSP, j'ai crée un tableau HTML dans ma page, les input ect....mais j'arrive pas à le remplir: voila ma fonction qui fait du calcul periodique et le stocke dans un tableau
et voila ma page JSP :
Code : Sélectionner tout - Visualiser dans une fenêtre à part 
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53package marouene; import java.util.Timer; import java.util.TimerTask; public class TestPerformance { static int i = 0; static Timer timer; static double[] tableauftp = new double[10]; static double[] tableauhttp = new double[10]; public static void main(String[] args) { Webbrowing web = new Webbrowing(); System.out.println("Temps de réponse webbrowsing en ms = " +web.Webtime()); class RemindTask extends TimerTask { public void run() { TestFtp ftp = new TestFtp(); HttpClient http = new HttpClient(); System.out.println("debit ftp = " +ftp.calculdebitftp()); System.out.println("debit http = " +http.debithttp()); //timer.cancel(); //Not necessary because we call System.exit // System.exit(0); //Stops the AWT thread (and everything else) tableauftp[i]=ftp.calculdebitftp(); tableauhttp[i]=http.debithttp(); i = i +1; if (i==11) { i=0; } } } timer = new Timer(); timer.scheduleAtFixedRate(new RemindTask(), 0, 5 * 1000); } }
je ne sais pas comment exploiter les valeurs de mon tableau dans ma main Testperformance pour les afficher dans ce tableau, merci
Code : Sélectionner tout - Visualiser dans une fenêtre à part 
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
34
35
36
37
38
39
40

 

 
		
		 
         
 

 
			
			



 Problème d'affichage tableau en JSP
 Problème d'affichage tableau en JSP
				 Répondre avec citation
  Répondre avec citation
Partager