Probleme JDBC - JSP
iraho
Messages postés
40
Statut
Membre
-
KmiK Messages postés 24 Statut Membre -
KmiK Messages postés 24 Statut Membre -
Bonjour. j'ai un problème que j'arrive pas a régler et je suis perdue.
En fait, jai un code (jsp) :
String req = "update Fournisseur set Tel_bureau='"
+ tl + "', Tel_portable='"+ tp + "', Telecopie='"
+ tc + "', Contact='" + pe + "', Fonction='" + fc + "', Mail='"
+ ml + "', Site='" + nt + "', Adresse='" + ad + "', Code_post='"
+ cd+ "', Ville='" + vl + "', Pays='" + pa + "' where Nom ='"
+ sc + " ' ";
ce qui me semble bien écrit, pourtant ca plante. Par contre, juste pr vérifier,quand je mets directement: where Nom = "toto" , ca marche très bien.
Et pour tester j'essaie tt: where Nom =" + sc + "", ou
where Nom =" + sc; , et ca marche pas non plus.
Alors je sais plus quoi mettre. je comprends pas pourquoi ca marche pas.
Quelqu'un peut-il bien m'aider SVP.
Merci.
En fait, jai un code (jsp) :
String req = "update Fournisseur set Tel_bureau='"
+ tl + "', Tel_portable='"+ tp + "', Telecopie='"
+ tc + "', Contact='" + pe + "', Fonction='" + fc + "', Mail='"
+ ml + "', Site='" + nt + "', Adresse='" + ad + "', Code_post='"
+ cd+ "', Ville='" + vl + "', Pays='" + pa + "' where Nom ='"
+ sc + " ' ";
ce qui me semble bien écrit, pourtant ca plante. Par contre, juste pr vérifier,quand je mets directement: where Nom = "toto" , ca marche très bien.
Et pour tester j'essaie tt: where Nom =" + sc + "", ou
where Nom =" + sc; , et ca marche pas non plus.
Alors je sais plus quoi mettre. je comprends pas pourquoi ca marche pas.
Quelqu'un peut-il bien m'aider SVP.
Merci.
A voir également:
- Probleme JDBC - JSP
- Objets JDBC - Forum Programmation
- Commentaire jsp - Forum PHP
- XML et JSP ✓ - Forum Javascript
- JSP & Frame - Forum Javascript
- JSP & formulaires !!!!!!!!!!! ✓ - Forum Javascript