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

JavaÖн«Êý×é¸÷ÔªËØ×÷ΪÊý¾ÝÏî²åÈëµ½Êý¾Ý¿âÖÐ

private PreparedStatement pstmt;
String sql="INSERT INTO TABLE(id,Ãû³Æ,Óû§id,Stbid,MAC,Óû§×´Ì¬,×Ü´ÎÊý,IpµØÖ·,×ÊÁϸüÐÂʱ¼ä) " +
           "VALUES(?,?,?,?,?,?,?,?,?)";
 pstmt=connection.prepareStatement(sql);
 pstmt.setString(1,array[0]);
 pstmt.setString(2, array[1]);
 pstmt.setString(3, array[2]);
 pstmt.setString(4, array[3]);
 pstmt.setString(5, array[4]);  
 pstmt.setString(6, array[5]);
 pstmt.setString(7, array[6]);
 pstmt.setString(8, array[7]);
 pstmt.setString(9, array[8]);
 pstmt.executeUpdate();
                  
 pstmt.close();
 connection.commit();    
ÆäÖÐTABLEÖеĸ÷×ֶεÄÀàÐ;ùΪCharÀàÐÍ¡£


Ïà¹ØÎĵµ£º

java±àÒ뾲̬³£Á¿µÄ»úÖÆ

javaÐéÄâ»ú±àÒë»úÖÆ£¬¾²Ì¬³£Á¿ÔÚ±àÒëºó£¬³ÉΪÁ˳£Á¿£¬¶ø²»ÊÇÔ­ÏȵĴúÂ룬ÀýÈ磺
ÓÐÒ»¸öÀà
Contant.java
ÀïÃæÓÐһЩ¾²Ì¬³£Á¿
public static final String GONGDAN = "gongdan@ceopen.cn";
public static final String ICT = "ictnetwork@ceopen.cn";
È»ºóÔÚ³ÌÐòÖÐÓÐʹÓÃÕâЩ³£Á¿£¬Contant.GONGDAN
ÔÚÄÇЩ³ÌÐò±àÒëºóµÄ ......

JAVA/JSPÀà±ÏÒµÉè¼Æ

JAVA/JSPÀà±ÏÒµÉè¼Æ
ÈôÓкÏÊÊÄúµÄÉè¼Æ£¬Çë¸æËßÎÒÏêϸ˵Ã÷µÄÍøÖ·£¡Ð»Ð»ºÏ×÷£¡
±àºÅ ÌâÄ¿ ¿ª·¢¹¤¾ß ÄÚÈÝ ×ÊÁÏ·Ñ Ïêϸ˵Ã÷
001JVSQL °ì¹«×Ô¶¯»¯ÏµÍ³ JAVA JAVAÔ´´úÂë+±ÏÒµÂÛÎÄ+¿ªÌⱨ¸æ+´ð±ç¸å £¤180 Ïêϸ˵Ã÷
002JVAC ѧÉúÐÅÏ¢¹ÜÀíϵͳ JAVA JAVAÔ´´úÂë+±ÏÒµÂÛÎÄ+¿ªÌⱨ¸æ+´ð±ç¸å £¤180 Ïêϸ˵Ã÷
004JVAC ͼÊé¹Ý¹ÜÀí ......

javaÓëÂÒÂë

UTF8ת»»³ÉGB2312 µ±ÎÒÃÇÔÚ»ùÓÚHTTPЭÒéµÄJSP»òServletµÄÓ¦ÓÃÖлñÈ¡Êý¾Ý»ò·¢ËÍÇëÇóʱ£¬JVM»á°ÑÊäË͵ÄÊý¾Ý±àÂë³ÉUTF8¸ñʽ¡£Èç¹ûÎÒÃÇÖ±½Ó´ÓHTTPÁ÷ÖÐÌáÈ¡ÖÐÎÄÊý¾Ý£¬ÌáÈ¡µÄ½á¹ûΪ“????”£¨¿ÉÄܸü¶àÎʺţ©£¬Îª×ª»»³ÉÎÒÃÇÄܹ»Àí½âµÄÖÐÎÄ×Ö·û£¬ÎÒÃÇÐèÒª°ÑUTF8ת»»³ÉGB2312£¬½èÖúISO-8859-1±ê×¼±àÂëÄܹ»ÇáÒ×µÄʵÏÖ¡£
ºº ......

jsp³£¼û´íÎójava.lang.ClassNotFoundException £­ 500

500´íÎó,classnotfoundÒì³££¬´úÂëûÓÐÎÊÌ⣬Êý¾Ý¿âҲûÎÊÌ⣬´òÁ˲¹¶¡£¬×°ÁËÇý¶¯£¬µ«ÊÇÔÚTOMCATÉÏÕÒ²»µ½ÄǸöÇý¶¯¶øÒý·¢µÄ´íÎ󡣡£¡£
½â¾ö°ì·¨£ºÊ×Ñ¡ÏîÉèÖÃÀMyRclipse->J2EE Project->Web Project->Deployment¹´ÉÏÄÇÈý¸öÇý¶¯¡£ ......

javaÐéÄâ»ú·½Ãæ

Ò»¡¢Àà×°ÔØÆ÷£ºÍ¨¹ý·Ö±ðʹÓò»Í¬µÄÀà×°ÔØÆ÷×°ÔØ¿É¿¿µÄ°üºÍ²»¿É¿¿µÄ°üÀ´ÊµÏÖ°² È«ÐÔ¡£
 
ÔÚ1.2°æ±¾µÄJavaÐéÄâ»ú¿ªÊ¼ÔËÐÐʱ£¬ÔÚÓ¦ÓóÌÐòÆô¶¯ÒÔÇ°£¬ËüÖÁÉÙ´´½¨Ò»¸öÓû§×Ô¶¨ÒåÀà×°ÔØÆ÷£¬Ò²¿ÉÄÜÊǶà¸ö¡£ËùÓÐÕâЩÀà×°ÔØÆ÷±»Á¬½ÓÔÚÒ»¸öË«Ç×--º¢×ӵĹØϵÁ´ÖУ¬ÔÚÕâÌõÁ´µÄ¶¥¶ËÊÇÆô¶¯Àà×°ÔØÆ÷£¬Ä©¶ËÊÇÒ»¸ö±»³ÆΪ“ϵͳÀà× ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ