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 34 35 36 37 38 39 40 41 42
|
import java.io.IOException;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import javax.swing.JOptionPane;
import org.apache.jasper.runtime.*;
public class Classe extends HttpJspBase {
private static final long serialVersionUID = 1L;
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException{
String submitButtonValue = request.getParameter("submitButton");
if ("OK".equalsIgnoreCase(submitButtonValue)){
JOptionPane.showMessageDialog(null,
"Essai!",
"ERREUR !", JOptionPane.ERROR_MESSAGE);
}else if ("Annuler".equalsIgnoreCase(submitButtonValue)){
}
}
@Override
public void _jspService(HttpServletRequest arg0, HttpServletResponse arg1)
throws ServletException, IOException {
// TODO Auto-generated method stub
}
} |
Partager