1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
   |  
 
public String button1_action() {
        // TODO: Process the action. Return value is a navigation
        // case name where null will return to the same page.
       String nom = nomtxt.getValue().toString();
      String prenom = prenomtxt.getValue().toString();
       String cin = cintxt.getValue().toString();
        int code_client=1;
        String tel1 = teltxt.getValue().toString();
        try {
              getSessionBean1().getClientRowSet().setCommand("exec Ps_Create_Client " + nom + "," + prenom + "," + cin + ",'said'," + tel1 + "," + code_client + "");
          } catch (SQLException ex) {
            Logger.getLogger(fiche_client.class.getName()).log(Level.SEVERE, null, ex);
        }
 
        l1.setText("enregistrement ok");
 
        return null;
    } | 
Partager