Bonjour, j'ai la méthode suivante :
	
	1 2 3 4 5 6 7 8 9 10 11
   | public static void exporter(){
try{
String[] command={"cmd.exe","/C","Start","C:\\Users\\imrane\\Desktop\\lancezmoi.bat"};
Runtime r=Runtime.getRuntime();
process p=r.exec(command);
p.waitFor();
}
catch(Exception e){
SYstem.out.println("erreur d execution");
}
} | 
 Quand je l'exécute dans le main, ça marche bien et quand je l'appelle via la jsp ça marche pas.
Voilà comment je l'appelle dans la page jsp
	
	<input type="submit" value="valider"  onclick="<%dao.suppression.exporter();%>">
 Merci de m'aider s'il vous plait 
						
					
Partager