Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

jspÑéÖ¤µÇ½

<%@ page contentType="text/html; charset=gb2312" %>

<%@ page language="java" %>

<%@ page import="com.mysql.jdbc.Driver" %>

<%@ page import="java.sql.*" %>

<%
String driverName="com.mysql.jdbc.Driver";
String userName="root";
String userPasswd="123456";
String dbName="hoot";
String tableName="userinfo";
String url="jdbc:mysql://localhost/"+dbName+"?user="+userName+"&password"
                +  "="+userPasswd;

Class.forName("com.mysql.jdbc.Driver").newInstance();
Connection connection=DriverManager.getConnection(url);
Statement statement = connection.createStatement();

        String Username=request.getParameter("Username");
        String Password=request.getParameter("Password");
 
        out.println(Username);
        out.println(Password);
String sql="SELECT * from userinfo where " +
                "username= 'Username' and password = 'Password'";
    &nbs


Ïà¹ØÎÊ´ð£º

jspÖÐ <c:if test> Ïà¹ØÎÊÌâ

ÔÚ²éѯºó½«²éѯ³öÀ´µÄÖµ¸³¸ø¸÷ÊäÈë¿ò
<c:if test="${not empty dataValue}">
      fm.SAMPLING_DATE.value=" <c:out value='${dataValue.SAMPLING_DATE}'/ ......

JSPÖÐÔËÐÐJavabean³ö´íÎÊÌâ

ÎÒ°ÑjavabeanµÄÔ´´úÂëSetGetPropertytest.Java·ÅÔÚC:\tomcat\webapps\mywork\WEB-

INF\classes\comÖÐ ÊDz»ÊÇÎҵİü´´½¨´íÁË»¹ÊÇ£¿ÒªÊǽ¨´íÁË,Ë­ÄܸæËßÎÒÔõô½¨Âð? лл´ó¼Ò

ǰÀ´°ï棬ͬʱף´ó¼ÒÖÐÇï¿ ......

jspÖÐÎÒÏë´ÓÊý¾Ý¿âÖвéѯ²¿·Ö¶«Î÷£¬Ôõôд´úÂ룿

ÎÒÓÃSqlServer½¨Á¢ÁËÒ»¸ö±í¡£ÀïÃæÓУ¬Îļþ±àºÅ:  ÎļþÃû³Æ:    ³§¼ÒÃû³Æ:    ¹éµµ²¿ÃÅ:  µÈµÈ£»
ÏÖÔÚÎÒÏë´ÓÕâ¸ö±íÖвéÎļþ±àºÅ£¬´úÂëÔõôд°¡£¬
ÀýÈ磬±íÃ÷dengjibiao Îļþ±à ......

jspÌø×ª

ÎÒµãºóÍËʱÊǿհ×Ò³Ãæ
ÐèˢвÅÄÜÏÔʾ
Õâ¸öÔõô´¦Àí°¡
Çë´ó¼Ò°ï°ïæ
°ÑÎÊÌâ˵µÄÏêϸһЩ£¬ÕâÑùÓÐÖúÓÚÎÊÌâµÄ»Ø¸´£¬¼°´ð°¸µÄ׼ȷÐÔ£¡

ÎÒ¾õµÃÊÇÄãµÄä¯ÀÀÆ÷Æ÷µÄÎÊÌâ°É£¬ÎÒÒÔǰÓöµ½¹ýÕâÑùµÄÎÊÌ⣬°ÑIEµÄËùÓÐÊôÐÔÖ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ