En lancant une jsp j'ai l'erreur suivante
Une erreur s'est produite à la ligne: 10 dans le fichier jsp: /jsp/testjsp/premier.jsp
MyBean cannot be resolved to a typeLe code du bean tout simple est le suivant :
Code : Sélectionner tout - Visualiser dans une fenêtre à part 
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
19public class MyBean { // Initialize with random values int prop1 = (int)(Integer.MAX_VALUE*Math.random()); String prop2 = ""+Math.random(); public int getProp1() { return prop1; } public void setProp1(int prop1) { this.prop1 = prop1; } public String getProp2() { return prop2; } public void setProp2(String prop2) { this.prop2 = prop2; } }

 

 
		
		 
         
			
			



 erreur dans une jsp :MyBean cannot be resolved to a type
 erreur dans une jsp :MyBean cannot be resolved to a type
				 Répondre avec citation
  Répondre avec citation
Partager