index.jspûÓдí
<form action=login.jsp name=form1 method=post>
<table align=center width="314" height="59">
<tr bgcolor="#ffffff">
<td class="tablerow" height="25" width="239" bgcolor="#c6efff">Óû§Ãû³Æ </td>
<td class="tablerow" height="25" width="52" bgcolor="#c6efff">
<input name="username" type="text" id="username" size="17" maxlength="15">
</tr>
<tr bgcolor="#ffffff">
<td class="tablerow" height="25" width="239" bgcolor="#c6efff">Óû§ÃÜÂë </td>
<td class="tablerow" height="25" width="526" bgcolor="#c6efff">
<input name="userpassword" type="password" size="17" maxlength="15">
</tr>
</table>
<input type="submit" value="怬" name="submit">
<input type="submit" value="×¢²á" name="zhuce">
<%
Connection con;
Statement sql, sql2;
ResultSet rs, rs2;
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
} catch (ClassNotFoundException e) {
ÎÒÏÖÔÚÏëÓÃsshÕûºÏÀ´×öÒ»¸öÂÛ̳£¬µ«Êý¾Ý¿â·½Ãæ²»ÐУ¬ÎÒÖ÷Òª²»»áÉæ¼°Êý¾Ý¿â£¬²»ÖªµÀ·¢Ìû±í£¬ºÍ»ØÌû±íÒªÈçºÎÉè¼ÆºÍÇø·Ö¡£²»ÖªµÀËÓÐÒ»¸ö¼òµ¥µÄ˼·£¬À´Éè¼ÆÕâЩ±í¡£Ð»Ð»ÁË¡£
·¢ÌûºÍ»ØÌûÓÃͬһÕÅ±í ¡£·¢Ìû id user ......
ÒªÓÃjspÖÆ×÷Ò»¸ö¶¯Ì¬¼à¿ØÒ³Ã棬ȫ²¿µÄÊý¾Ý¶¼´æÔÚÊý¾Ý¿âÀҲ¾ÍÊÇÎÒÕâ¸öÒ³ÃæÒªÄÜʵʱ¶ÁÈ¡Êý¾Ý¿âµÄÐÅÏ¢£¬ÇëÎʸ÷λ´óÏÀÓÐʲôºÃÌáÒé°¡£¿
ÓÐûÄÄλ´ó¸ç¸øµãºÃµÄÌáÒé°¡£¬Ð¡µÜ¶àлÁË~~
ÓÃajax°É£¬ÊµÊ±µÄ¼à¿Ø¡£
崃 ......
ÎÒÏÂÔØÁËjavaµ«ÕÒ²»µ½·ÅµÄλÖÃÁË£¬Ò²ÏÂÔØÁËtomcat¡£¸Ä»·¾³±äÊýµÄʱºòÐèÒªÕÒµ½java-homeºóÃæµÄλÖᣡ£ÎÒÔõô²ÅÄÜÕÒµ½ÄØ£¿
»¹ÓоÍÊÇÔõôÕÒµ½ÏÂÔØºÃÁ˵ĵ«Íü¼ÇλÖõÄÎļþÄØ£¿ÓÃ×¢²á±íÂð£¿
ºÃÏñ¸újspû¹ØÏµµÄ°É£¿£¿Ôõ ......