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 :

Créer un formulaire dans une page JSP dynamique


Sujet :

Servlets/JSP Java

  1. #1
    Membre du Club
    Profil pro
    Inscrit en
    Juin 2008
    Messages
    87
    Détails du profil
    Informations personnelles :
    Localisation : Canada

    Informations forums :
    Inscription : Juin 2008
    Messages : 87
    Points : 48
    Points
    48
    Par défaut Créer un formulaire dans une page JSP dynamique
    a tout le monde,
    je suis débutante en j2ee et j'ai besoin de créer une page JSP dynamique.
    mon formulaire contient les champs nom et prenom des etudiants inscrits dans une matiere et leurs notes qui doivant etre saisies par l'enseignant.

    maintenant moi je veux en premiere etape avoir tous les etudiants inscrits et au moment ou je clique sur "suivant" avoir le deuxieme ect jusqu'au dernier.

    aidez moi svp.
    merci d'avance

  2. #2
    Membre du Club
    Profil pro
    Développeur Web
    Inscrit en
    Avril 2008
    Messages
    49
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Avril 2008
    Messages : 49
    Points : 51
    Points
    51
    Par défaut
    Ok pour ce que tu veux faire.
    Par contre peux tu être plus précis ? tu bloque à quel niveau ? affichage du formulaire ? base de données ? synthaxe jsp ?

  3. #3
    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
    Points : 3 938
    Points
    3 938
    Par défaut
    Avant qu'elle ne réprécise sa question, petit correctif de vocab à apporter
    JSP= Java server Page, donc par définition c'est une page dynamique puisqu'elle est précompilée avant affichage. y'a pas d'interet à faire une page JSP sans inclure du code java, autant faire un html tout simple
    C'était une parenthèse.
    Vous avez peut être hâte de réussir et il n'y a rien de mal à cela...
    mais la patience est aussi une vertu; l'échec vous l'enseignera certainement..."

  4. #4
    Membre du Club
    Profil pro
    Inscrit en
    Juin 2008
    Messages
    87
    Détails du profil
    Informations personnelles :
    Localisation : Canada

    Informations forums :
    Inscription : Juin 2008
    Messages : 87
    Points : 48
    Points
    48
    Par défaut po un blem de base
    salut, tt d'abord merci pour vos reponses.
    mon but actuel c avoir le nom et le prenom des etudiants ds mon formulaire et au moment ou je clique sur suivant je veux avoir le nom et le prenom du deuxieme ..... jusqu'a le dernier etudiant.
    moi j'arrive slm a visialiser le nom et prenom du premier etudiant qd je clique sur suivant j'ai la meme formulaire mais il est VIDE alors kil ya encore des etudiants car ma requete retourne trois etudiants.
    j'espere ke c clair pour vous mnt, j'attens votre reponse.
    merci a vous tous.

  5. #5
    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
    Points : 3 938
    Points
    3 938
    Par défaut
    Px tu montrer le code qui charge les 3 étudiants issus de la requête d'extraction?
    et comment tu le charges dans ton 1er formulaire?
    Vous avez peut être hâte de réussir et il n'y a rien de mal à cela...
    mais la patience est aussi une vertu; l'échec vous l'enseignera certainement..."

  6. #6
    Membre du Club
    Profil pro
    Inscrit en
    Juin 2008
    Messages
    87
    Détails du profil
    Informations personnelles :
    Localisation : Canada

    Informations forums :
    Inscription : Juin 2008
    Messages : 87
    Points : 48
    Points
    48
    Par défaut
    voila le code de la page note.jsp ds le fichier note.zip
    merci bcp.
    Fichiers attachés Fichiers attachés

  7. #7
    Membre du Club
    Profil pro
    Développeur Web
    Inscrit en
    Avril 2008
    Messages
    49
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Avril 2008
    Messages : 49
    Points : 51
    Points
    51
    Par défaut
    Je crois que tu execute tout le temps la même requète. Essaye de faire une clause Where avec l'id de l'étudiant.
    Dans ton formulaire fait un champ input avec un type "hidden" ou tu lui passe l'id de l'étudiant courant.
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    <input name="champCache" type="hidden" value="<%=idEtudiant %>" />
    Avant d'éxécuter la requête un petit test sur la valeur du paramètre :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
     
    int idEtudiant = 0 ;
    if(request.getParameter("champCache")!=null){
    idEtudiant  = Integer.parseInt(request.getParameter("champCache")) + 1 ;
    }

  8. #8
    Membre du Club
    Profil pro
    Inscrit en
    Juin 2008
    Messages
    87
    Détails du profil
    Informations personnelles :
    Localisation : Canada

    Informations forums :
    Inscription : Juin 2008
    Messages : 87
    Points : 48
    Points
    48
    Par défaut
    merci bcp pour ta reponse,

    idEtudiant = Integer.parseInt(request.getParameter("champCache")) + 1 ;
    prk tu ajoutes 1, les etudiants etudiant la meme matiere sur la quelle je fais le test ds ma requete n'ont po forcement des id successif 1,2,3...

    si c possible integre le code que tu veux ke j'ajoute ds mon projet ds la page jsp ke g envoye car g po bien pige ce ke vous vouez que je fasse.

    merci bcp pour votre reponse.

  9. #9
    Membre du Club
    Profil pro
    Inscrit en
    Juin 2008
    Messages
    87
    Détails du profil
    Informations personnelles :
    Localisation : Canada

    Informations forums :
    Inscription : Juin 2008
    Messages : 87
    Points : 48
    Points
    48
    Par défaut

    en ajoutant ce ke vous m'avez demandé de faire g plus d'etudiant meme le premier ki s'affichais je lai plus mnt.
    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
     
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
        pageEncoding="ISO-8859-1"%>
    <%@ page import="java.util.* , java.sql.*" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Notes</title>
    </head>
     
    <body>
    <jsp:useBean  id="bean1" scope="session" class="projet.enseignant.Enseignant">
    </jsp:useBean>
     
    <jsp:useBean id="bean2" scope="session" class="projet.enseignant.Etudiant">
    <jsp:setProperty name="bean2" property="id"/>
    <jsp:setProperty name="bean2" property="nom"/>
    <jsp:setProperty name="bean2" property="prenom"/>
    <jsp:setProperty name="bean2" property="idMat"/>
    </jsp:useBean>
     
    <%
    String url = "jdbc:odbc:li";
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection c = DriverManager.getConnection(url, "sa", "adminadmin");
    Statement s = c.createStatement();
    ResultSet r;
       int j;
       String a="";
       String b="";
       String ch="";
       String Req;
       int i=0;     
       
       //pr avoir la matiere ka choisi le prof ds la page precedante.
       String var0 = request.getParameter("Matiere");
            if (var0 == null){
                var0 = "";
                ch="";
            }
            else{
            i=Integer.parseInt(var0);
            ch=bean1.libelleMat(i);
            }
       
       int idEtud = 1;
       if(request.getParameter("champCache")!=null){
            idEtud  = Integer.parseInt(request.getParameter("champCache")) + 1 ;
       }
       //else{     
                    Req="SELECT Etudiant.IdEtudiant, Etudiant.Nom, Etudiant.Prenom, Inscription.IdMatiere "+ 
               "FROM   Etudiant JOIN "+
               "Inscription on Etudiant.IdEtudiant= Inscription.IdEtudiant "+ 
               "WHERE Inscription.IdMatiere='"+ i +"' "+ 
               "AND Etudiant.IdEtudiant='"+ idEtud +"' "+
               "AND   Inscription.Annee='"+ "2007/2008" +"' ";
            
            
       
            r=s.executeQuery(Req);
            while(r.next()){
                    j=r.getInt(1);
                    a=r.getString(2);
                    b=r.getString(3);
                    i=Integer.parseInt(r.getString(4));
                    ch=bean1.libelleMat(i);
                    out.print(a);
                    out.print(b);
                    break;
            
            }
            //}
            %>
     
    <form action="note.jsp?id=j" method="get">
    <h1 align="center"> Saisi de note de la matiere <%=ch%></h1>
     
    <table align="center">
    <tr>
    <td>Nom: </td>
    <td><input type="text" name="nom" value="<%=a%>"/></td>
    </tr>
     
    <tr>
    <td>Prénom: </td>
    <td><input type="text" name="prenom" value="<%=b%>"/></td>
    </tr>
     
    <tr>
    <td>Controle1: </td>
    <td><input type="text" name="c1" /></td>
    </tr>
     
    <tr>
    <td>Controle2: </td>
    <td><input type="text" name="c2" /></td>
    </tr>
     
    <tr>
    <td>Controle3: </td>
    <td><input type="text" name="c3" /></td>
    </tr>
     
    <tr>
    <td>TP: </td>
    <td><input type="text" name="tp" /></td>
    </tr>
     
    <tr>
    <td>Assiduité: </td>
    <td><input type="text" name="ass" /></td>
    </tr>
     
    <tr>
    <td>Exam: </td>
    <td><input type="text" name="exam" /></td>
    </tr>
     
    <tr>
    <td>Rattrapage: </td>
    <td><input type="text" name="rat" /></td>
    </tr>
     
    <tr>
    <td></td>
    <td align="right"><input type="submit" name ="bout" value="Suivant" /></td>
    </tr>
     
    <tr>
    <td></td>
    <td><input name="champCache" type="hidden" value="<%=idEtud %>" /></td>
    </tr>
     
    </table>
    </form>
    </body>
    </html>
    aidez moi svp il me reste po bcp de temps.
    merci bcp

  10. #10
    Membre du Club
    Profil pro
    Inscrit en
    Juin 2008
    Messages
    87
    Détails du profil
    Informations personnelles :
    Localisation : Canada

    Informations forums :
    Inscription : Juin 2008
    Messages : 87
    Points : 48
    Points
    48
    Par défaut
    voila le code de la page note.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
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
        pageEncoding="ISO-8859-1"%>
    <%@ page import="java.util.* , java.sql.*" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Notes</title>
    </head>
     
    <body>
    <jsp:useBean  id="bean1" scope="session" class="projet.enseignant.Enseignant">
    </jsp:useBean>
     
    <jsp:useBean id="bean2" scope="session" class="projet.enseignant.Etudiant">
    <jsp:setProperty name="bean2" property="id"/>
    <jsp:setProperty name="bean2" property="nom"/>
    <jsp:setProperty name="bean2" property="prenom"/>
    <jsp:setProperty name="bean2" property="idMat"/>
    </jsp:useBean>
     
    <%
    String url = "jdbc:odbc:li";
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection c = DriverManager.getConnection(url, "sa", "adminadmin");
    Statement s = c.createStatement();
    ResultSet r;
       Vector v = new Vector();
       int j=0;
       int idEtud=0;
       
       
       String a="";
       String b="";
       String ch="";
       String Req;
       int i=0;     
       
       String var0 = request.getParameter("Matiere");
       if (var0 == null){
                var0 = "";
                ch="";
       }
       else{
                             i=Integer.parseInt(var0);
                         ch=bean1.libelleMat(i);
       }
       
       Req=    "SELECT Etudiant.IdEtudiant, Etudiant.Nom, Etudiant.Prenom, Inscription.IdMatiere "+ 
               "FROM   Etudiant JOIN "+
               "Inscription on Etudiant.IdEtudiant= Inscription.IdEtudiant "+ 
               "WHERE Inscription.IdMatiere='"+ i +"' "+ 
               "AND   Inscription.Annee='"+ "2007/2008" +"' ";
       r=s.executeQuery(Req);
       while(r.next()){
                    v.addElement(r.getInt(1));
       }
       
       while(j<v.size()){
                    idEtud = Integer.valueOf(String.valueOf(v.elementAt(j)));
                    if(request.getParameter("champCache")!=null){
                            int comp=Integer.parseInt(request.getParameter("champCache"));
                            idEtud  =Integer.valueOf(String.valueOf(v.elementAt(comp))); 
                    }
            
                    Req=bean2.cherch(i,idEtud);
                    r=s.executeQuery(Req);
                    if(r.next()){
                            a=r.getString(2);
                            b=r.getString(3);
                            i=Integer.parseInt(r.getString(4));
                            ch=bean1.libelleMat(i);
                            out.print(a);
                            out.print(b);
                    }
                    break;
       }
            %>
     
    <form action="note.jsp" method="get">
    <h1 align="center"> Saisi de note de la matiere <%=ch%></h1>
     
    <table align="center">
    <tr>
    <td>Nom: </td>
    <td><input type="text" name="nom" value="<%=a%>"/></td>
    </tr>
     
    <tr>
    <td>Prénom: </td>
    <td><input type="text" name="prenom" value="<%=b%>"/></td>
    </tr>
     
    <tr>
    <td>Controle1: </td>
    <td><input type="text" name="c1" /></td>
    </tr>
     
    <tr>
    <td>Controle2: </td>
    <td><input type="text" name="c2" /></td>
    </tr>
     
    <tr>
    <td>Controle3: </td>
    <td><input type="text" name="c3" /></td>
    </tr>
     
    <tr>
    <td>TP: </td>
    <td><input type="text" name="tp" /></td>
    </tr>
     
    <tr>
    <td>Assiduité: </td>
    <td><input type="text" name="ass" /></td>
    </tr>
     
    <tr>
    <td>Exam: </td>
    <td><input type="text" name="exam" /></td>
    </tr>
     
    <tr>
    <td>Rattrapage: </td>
    <td><input type="text" name="rat" /></td>
    </tr>
     
    <tr>
    <td></td>
    <td align="right"><input type="submit" name ="bout" value="Suivant" /></td>
    </tr>
     
    <tr>
    <td></td>
    <td><input name="champCache" type="hidden" value="<%=j++%>" /></td>
    </tr>
     
    </table>
    </form>
    </body>
    </html>
    et voila le code de la fct cherch(int,int):
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    public String cherch(int g,int h)throws ClassNotFoundException, SQLException{
    		String ch="";
    		Req= "SELECT Etudiant.IdEtudiant, Etudiant.Nom, Etudiant.Prenom, Inscription.IdMatiere "+ 
    	   			"FROM   Etudiant JOIN "+
    	   			"Inscription on Etudiant.IdEtudiant= Inscription.IdEtudiant "+ 
    	   			"WHERE Inscription.IdMatiere='"+ g +"' "+ 
    	   			"AND Etudiant.IdEtudiant='"+ h +"' "+
    	   			"AND   Inscription.Annee='"+ "2007/2008" +"' ";
    		rs=st.executeQuery(Req);
    		if(rs.next()){
    			ch=Req;
    		}
    		return ch;
    	}
    aidez moi svp

  11. #11
    Membre du Club
    Profil pro
    Développeur Web
    Inscrit en
    Avril 2008
    Messages
    49
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Avril 2008
    Messages : 49
    Points : 51
    Points
    51
    Par défaut
    Le resultSet est parcouru a chaque fois en entier et les valeurs de a et b sont à chaque affichage de la page extrait de la dernière ligne de la requête. A mon avis c'est autour de ça qu'il faut chercher.

    essayez ca :

    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
     
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
        pageEncoding="ISO-8859-1"%>
    <%@ page import="java.util.* , java.sql.*" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Notes</title>
    </head>
     
    <body>
    <jsp:useBean  id="bean1" scope="session" class="projet.enseignant.Enseignant">
    </jsp:useBean>
     
    <jsp:useBean id="bean2" scope="session" class="projet.enseignant.Etudiant">
    <jsp:setProperty name="bean2" property="id"/>
    <jsp:setProperty name="bean2" property="nom"/>
    <jsp:setProperty name="bean2" property="prenom"/>
    <jsp:setProperty name="bean2" property="idMat"/>
    </jsp:useBean>
     
    <%
    String url = "jdbc:odbc:li";
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection c = DriverManager.getConnection(url, "sa", "adminadmin");
    Statement s = c.createStatement();
    ResultSet r;
       int j;
       String a="";
       String b="";
       String ch="";
       String Req;
       int i=0;     
       
       //pr avoir la matiere ka choisi le prof ds la page precedante.
       String var0 = request.getParameter("Matiere");
            if (var0 == null){
                var0 = "";
                ch="";
            }
            else{
            i=Integer.parseInt(var0);
            ch=bean1.libelleMat(i);
            }
       
       int idEtud = 1;
       if(request.getParameter("champCache")!=null){
            idEtud  = Integer.parseInt(request.getParameter("champCache")) + 1 ;
       }
       //else{     
                    Req="SELECT Etudiant.IdEtudiant, Etudiant.Nom, Etudiant.Prenom, Inscription.IdMatiere "+ 
               "FROM   Etudiant JOIN "+
               "Inscription on Etudiant.IdEtudiant= Inscription.IdEtudiant "+ 
               "WHERE Inscription.IdMatiere='"+ i +"' "+ 
               "AND   Inscription.Annee='"+ "2007/2008" +"' ";
            
            
       
            r=s.executeQuery(Req);
            r.absolute(idEtud) ;
            if(r.next()){
                    j=r.getInt(1);
                    a=r.getString(2);
                    b=r.getString(3);
                    i=Integer.parseInt(r.getString(4));
                    ch=bean1.libelleMat(i);
                    out.print(a);
                    out.print(b);   
            }
            //}
            %>
     
    <form action="note.jsp?id=j" method="get">
    <h1 align="center"> Saisi de note de la matiere <%=ch%></h1>
     
    <table align="center">
    <tr>
    <td>Nom: </td>
    <td><input type="text" name="nom" value="<%=a%>"/></td>
    </tr>
     
    <tr>
    <td>Prénom: </td>
    <td><input type="text" name="prenom" value="<%=b%>"/></td>
    </tr>
     
    <tr>
    <td>Controle1: </td>
    <td><input type="text" name="c1" /></td>
    </tr>
     
    <tr>
    <td>Controle2: </td>
    <td><input type="text" name="c2" /></td>
    </tr>
     
    <tr>
    <td>Controle3: </td>
    <td><input type="text" name="c3" /></td>
    </tr>
     
    <tr>
    <td>TP: </td>
    <td><input type="text" name="tp" /></td>
    </tr>
     
    <tr>
    <td>Assiduité: </td>
    <td><input type="text" name="ass" /></td>
    </tr>
     
    <tr>
    <td>Exam: </td>
    <td><input type="text" name="exam" /></td>
    </tr>
     
    <tr>
    <td>Rattrapage: </td>
    <td><input type="text" name="rat" /></td>
    </tr>
     
    <tr>
    <td></td>
    <td align="right"><input type="submit" name ="bout" value="Suivant" /></td>
    </tr>
     
    <tr>
    <td></td>
    <td><input name="champCache" type="hidden" value="<%=idEtud %>" /></td>
    </tr>
     
    </table>
    </form>
    </body>
    </html>

  12. #12
    Membre du Club
    Profil pro
    Inscrit en
    Juin 2008
    Messages
    87
    Détails du profil
    Informations personnelles :
    Localisation : Canada

    Informations forums :
    Inscription : Juin 2008
    Messages : 87
    Points : 48
    Points
    48
    Par défaut
    salut
    t d'abors merci pour la reponse
    secondo je pense po ke le resultset va etre parcouru tt entier car si at bien remarqueé g mit un break sinon il va me donner le dernier etudiant et c fini jaurai po les autres.
    je vais essayer ton code comme meme
    merci

  13. #13
    Membre du Club
    Profil pro
    Inscrit en
    Juin 2008
    Messages
    87
    Détails du profil
    Informations personnelles :
    Localisation : Canada

    Informations forums :
    Inscription : Juin 2008
    Messages : 87
    Points : 48
    Points
    48
    Par défaut en vain
    re
    g execute ce ke tu ma demande mais il me donne une erreur a propos de rs.absolute ke g po compris a koi sert.
    l'errueur est:

    Result set type is TYPE_FORWARD_ONLY

    merci davance

  14. #14
    Membre du Club
    Profil pro
    Inscrit en
    Juin 2008
    Messages
    87
    Détails du profil
    Informations personnelles :
    Localisation : Canada

    Informations forums :
    Inscription : Juin 2008
    Messages : 87
    Points : 48
    Points
    48
    Par défaut
    DONNEZ MOI UNE SOLUTION SVP AISEZ MOI G TROP ASSEYE ET 9A MARCHE PO ET LE TEMPS PASSE

    MERCI BCP


Discussions similaires

  1. Réponses: 2
    Dernier message: 20/02/2013, 16h39
  2. Récupération des données de formulaire dans une page JSP
    Par fauthie dans le forum Servlets/JSP
    Réponses: 2
    Dernier message: 16/09/2009, 14h02
  3. [Sécurité] comment récupérer le subject dans une page jsp?
    Par lalakers dans le forum Servlets/JSP
    Réponses: 13
    Dernier message: 13/07/2005, 11h42
  4. [XML][XSL][Mozilla Firefox] Integraton dans une page JSP
    Par BANATACH dans le forum XSL/XSLT/XPATH
    Réponses: 3
    Dernier message: 05/08/2004, 14h46
  5. [Debutant(e)]Appel d'une servlet dans une page jsp
    Par kouadjalain dans le forum Servlets/JSP
    Réponses: 5
    Dernier message: 20/07/2004, 15h02

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