IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Servlets/JSP Java Discussion :

enregistrement d'une consultation


Sujet :

Servlets/JSP Java

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre averti
    Femme Profil pro
    Étudiant
    Inscrit en
    Janvier 2012
    Messages
    23
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Tunisie

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Matériel informatique

    Informations forums :
    Inscription : Janvier 2012
    Messages : 23
    Par défaut enregistrement d'une consultation
    salut à tous
    Alors j'ai une page consultation.jsp
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
     
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
     
    pageEncoding="ISO-8859-1"%>
     
    <%@ page import="java.sql.*" %>
     
    <%@ page import="connexion.Cx" %>
     
    <%@ page import="classes.Consultation" %>
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     
    <html xmlns="http://www.w3.org/1999/xhtml" crossriderapp2258="true"><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
     
     
     
    <title>Cabinet Medical</title>
     
    <link href="file:///C|/Users/tosh/Desktop/benaissa/template/Pr&eacute;sentation.php_files/main.css" rel="stylesheet" type="text/css">
     
    <script language="javascript">
     
    <!--
     
    if (navigator.appName=="Microsoft Internet Explorer") {
     
    document.write("<link rel=stylesheet href=\"styles\/cadre_ombres_ie.css\" type=\"text\/css\">");
     
    }
     
    else{
     
    document.write("<link rel=stylesheet href=\"styles\/cadre_ombres.css\" type=\"text\/css\">");
     
    } // -->
     
    </script><link rel="stylesheet" href="file:///C|/Users/tosh/Desktop/benaissa/template/Pr&eacute;sentation.php_files/cadre_ombres.css" type="text/css">
     
    <script async="" type="text/javascript" src="file:///C|/Users/tosh/Desktop/benaissa/template/Pr&eacute;sentation.php_files/cc.php" id="_GPL_a652c"></script>
     
    <style type="text/css">
     
    <!--
     
    .Style1 {color: #0048ff}
     
    .Style9 {
     
    color: #0048ff;
     
    font-weight: bold;
     
    font-size: 25px;
     
    }
     
    -->
     
    </style>
     
    </head>
     
     
     
    <body topmargin="0">
     
    <table align="center" cellpadding="0" cellspacing="0" id="tabConteneurGlobal">
     
    <tbody><tr>
     
    <td width="1001" align="center" valign="top" background="file:///C|/Users/tosh/Desktop/benaissa/degrade (2).png">
     
    <table width="914" height="785" border="0" cellpadding="0" cellspacing="0" bordercolor="#0066CC">
     
    <tbody><tr>
     
    <td width="7" height="785" id="ombre_gauche">	 </td>
     
    <td id="centre">
     
    <img src="bandeau_sante.jpg" width="998" height="166" />
     
    <table cellpadding="0" cellspacing="0" border="0">
     
    <tbody><tr>
     
    <td height="577" align="left" valign="top" id="content">
     
    <table width="998" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#0066cc">
     
    <tbody>
     
     
     
    <tr>
     
    <td width="998">
     
    <table width="100%" height="552" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#0066CC">
     
    <tbody>
     
    <tr>
     
    <td height="25" bgcolor="#FFFFFF"><table width="1058" border="0">
     
    <tr>
     
    <th width="191" scope="col"><a href="acceuil.html">Acceuil</a></th>
     
    <th width="278" scope="col"><a href="ordonnance.jsp">Ordonnance</a></th>
     
    <th width="283" scope="col"><a href="certificat.jsp">Certificat</a></th>
     
    <th width="288" scope="col"><a href="bilan.jsp">Bilan_Test</a></th>
     
    <th width="288" scope="col"><a href="medicament.jsp">M&eacute;dicament</a></th>
     
    <th width="288" scope="col"><a href="historique.jsp">Historique</a></th>
     
    </tr>
     
    </table></td>
     
    </tr>
     
    <tr>
     
    <td width="8" height="527" bgcolor="#FFFFFF"><p align="center"><img src="D:/images/3BJO2s1338508948.gif" width="215" height="45" align="middle" /></p>
     
    <p>&nbsp;</p>
     
    <table width="917" border="2" align="center" bordercolor="#0066cc">
     
    <tr bordercolor="#0066CC">
     
    <td width="799" height="481" align="center" valign="top" background="file:///C|/Users/tosh/Desktop/benaissa/template/Pr&eacute;sentation.php_files/fond_morbihan2.gif" style="background-repeat:no-repeat; background-position:bottom left; ">
     
     
     
    <div align="center">
     
    <form id="form1" name="maform" method="post" action="saveclt.jsp">
     
    <table width="83%" align="center">
     
    <tbody>
     
    <tr>
     
    <td align="left"><span class="Style5"><span class="Style2"><span class="Style9">Donn&eacute;es patient : </span></span></td>
     
    </tr>
     
    <tr>
     
    <td background="file:///C|/Users/tosh/Desktop/benaissa/template/Pr&eacute;sentation.php_files/pict_separateur.gif" height="1"></td>
     
    </tr>
     
    <tr>
     
    <td height="99" align="center" id="txtSimple"><table width="646">
     
    <tr>
     
    <td width="154" height="29"><span style="font-weight: normal;">N&deg; carte d'identit&eacute;e : </span></td>
     
    <td width="151"><input type="text" name="cin" value="" /></td>
     
    <td width="151" height="29"><span style="font-weight: normal;">Nom du patient: </span></td>
     
    <td width="170"><input type="text" name="nom" value="" /></td>
     
    </tr>
     
    <tr>
     
    <td height="29" style="font-weight: normal;">Prenom du patient : </td>
     
    <td><input type="text" name="prenom" value="" /></td>
     
    <td width="151" height="29"><span style="font-weight: normal;">N&deg; CNAM : </span></td>
     
    <td width="170"><input type="text" name="ncnam" value="" /> </td>
     
    </tr>
     
    <tr>
     
    <td height="29" style="font-weight: normal;">Type r&eacute;gime : </td>
     
    <td><input type="text" name="regime" value="" /></td>
     
     
     
    </tr>
     
    </table></td>
     
    </tr>
     
    </tbody>
     
    </table>
     
    </form> <table width="80%" align="center">
     
    <tbody>
     
    <tr>
     
    <td align="left" class="Style9"><span class="Style5"><span class="Style2"><span class="Style1">Donn&eacute;es consultation : </span></span></td>
     
    </tr>
     
    <tr>
     
    <td background="file:///C|/Users/tosh/Desktop/benaissa/template/Pr&eacute;sentation.php_files/pict_separateur.gif" height="1"></td>
     
    </tr>
     
    <tr>
     
    <td height="211" align="center" id="txtSimple"><table width="645" border="0">
     
    <tr>
     
    <th width="639" height="70" scope="col"><table width="638" align="left">
     
    <tr>
     
    <td width="201" height="29" style="font-weight: normal;"><div align="left">Id consultation : </div></td>
     
    <td width="144"><input type="text" name="idclt" value="" /></td>
     
    <td width="103" height="29" style="font-weight: normal;"><div align="left">Code acte: </div></td>
     
    <td width="170"><input type="text" name="acte" value="" /></td>
     
    </tr>
     
    <tr>
     
    <td height="29" style="font-weight: normal;"><div align="left">Date consultation:&nbsp;(aaaa/mm/jj)</div></td>
     
    <td><input type="text" name="dateclt" value="" /></td>
     
    <td width="103" height="29" style="font-weight: normal;"><div align="left">Symptome: </div></td>
     
    <td width="170"><input type="text" name="symptome" value="" /></td>
     
    </tr>
     
    </table></th>
     
    </tr>
     
    <tr>
     
    <td height="133"><div align="center">
     
    <textarea name="textarea" cols="80" rows="8"></textarea>
     
    </div></td>
     
    </tr>
     
    </table> </td>
     
    </tr>
     
    </tbody>
     
    </table>
     
    <p>
     
    <input type="submit" name="save" value="Enregistrer" />
     
    <input type="reset" name="annuler" value="Annuler" />
     
    </p>
     
    </div> </td></tr>
     
    </table>
     
    <p>&nbsp;</p></td>
     
    </tr>
     
    </tbody></table>	 </td>
     
    </tr>
     
    <tr>
     
    <td height="1" bgcolor="#0b598b">	</td>
     
    </tr>
     
    <tr>
     
    <td bgcolor="#FFFFFF" height="24">
     
    &nbsp;&nbsp;&nbsp;Cabinet medical GMedic - Bizerte T&eacute;l: 22 55 99 02 </td>
     
    </tr>	 </tbody></table>	 </td>
     
    </tr>
     
    </tbody></table>	 </td>
     
    <td id="ombre_droite">	 </td>
     
    </tr>
     
    </tbody></table>
     
    </td>
     
    </tr>
     
    </tbody></table>
     
     
     
     
     
     
     
    </body></html>
    et je veux aprés avoir gerer la consultation elle s'enregistre avec la date du consultationet avec les données patient et données consultation correspondantes
    et Merci d'avance

  2. #2
    Membre Expert
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Juin 2007
    Messages
    2 938
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels

    Informations forums :
    Inscription : Juin 2007
    Messages : 2 938
    Par défaut
    Et? Ton souci c'est lequel? Tu veux qu'on te file le code pour effectuer cet enregistrement c'est ça?

  3. #3
    Membre averti
    Femme Profil pro
    Étudiant
    Inscrit en
    Janvier 2012
    Messages
    23
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Tunisie

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Matériel informatique

    Informations forums :
    Inscription : Janvier 2012
    Messages : 23
    Par défaut
    oui et merci

  4. #4
    Membre Expert
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Juin 2007
    Messages
    2 938
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels

    Informations forums :
    Inscription : Juin 2007
    Messages : 2 938
    Par défaut
    Citation Envoyé par marwabenaissa Voir le message
    oui et merci
    Ce n'est pas du tout l'esprit de ce forum de tout faire à la place de la personne qui cherche. Votre question est très évasive, on n'a aucune information ni sur la couche controleur, ni sur la couche de persistance. Je vous conseille vivement de suivre un tutoriel complet helloworld jsp/servlet,c'est la meilleur façon de démarrer, comme ici.Et donc de revenir nous voir avec des questions plus ciblées.Bonne lecture

Discussions similaires

  1. [DB] Nombre d'enregistrements d'une table
    Par Mister Nono dans le forum Bases de données
    Réponses: 26
    Dernier message: 09/05/2006, 09h51
  2. Nombre Total d'Enregistrements d'une Requête d'Union
    Par sqlnet dans le forum Langage SQL
    Réponses: 5
    Dernier message: 30/12/2003, 17h12
  3. Réponses: 10
    Dernier message: 01/08/2003, 13h45
  4. Trouver le dernier enregistrement d'une table
    Par remi59 dans le forum Requêtes
    Réponses: 4
    Dernier message: 11/03/2003, 14h54
  5. [VB6] Supprimer un enregistrement dans une ListView ??
    Par Argonz dans le forum VB 6 et antérieur
    Réponses: 2
    Dernier message: 14/11/2002, 09h37

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo