Hello,

Are you sure you don't have another filed name="username" somewhere else in 
your jsp code ?

Lau/
 

-----Message d'origine-----
De : ganesan malairaja [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 8 août 2005 06:28
À : tomcat-user@jakarta.apache.org
Objet : query problem


i am extracting info from html forms .. but one of the field allways return the 
value null only

html code

<form>
<input type="text" name="username" size="8"> </form>

jsp code

String username = request.getParameter("username");

SQL codes;

String query7 = "Insert into Admin(UserName,PassWord,Admin_type,Admin_Name)
values('"+username+"','"+password+"', 'Staff','"+AdminName+"')";

it returns the username as null

i cant figure out what is  the problem
..

any links or example how to do it properly will help

thanks

stmt1.executeUpdate(query7);
stmt1.close();



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to