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

JavaÐÅÏ¢Ìáʾ¿ò - Java / Java SE

private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
  Connection conn=DBUtil.getConnection();
  Statement stmt=null;
  try{
  stmt=conn.createStatement();
  String sql="select * from user";
  ResultSet rs = stmt.executeQuery(sql);
  while (rs.next()) {
if(jTextField1.getText().equals(rs.getString("username"))){ 
  JOptionPane.showMessageDialog(null,"¸ÃÓû§ÃûÒѾ­´æÔÚ£¬²»¿ÉÒÔʹÓá£");
  }else if(jTextField1.getText().equals("")){
  JOptionPane.showMessageDialog(null,"Óû§Ãû²»ÄÜΪ¿Õ£¬ÇëÖØÐÂÌîд£¡");
  }else if(!jTextField1.getText().equals(rs.getString("username"))){
  JOptionPane.showMessageDialog(null,"¸ÃÓû§Ãû²»´æÔÚ£¬¿ÉÒÔʹÓá£");
  }
  }

  }catch(SQLException e){
  e.printStackTrace();
  }finally{
  try{
  stmt.close();
  DBUtil.close(conn);
  }catch(SQLException e){
  e.printStackTrace();
  }
  }
  }
ÕâÀïµÄwhileÓï¾ä¶ÔÐÅÏ¢Ìáʾ¿ò(³öÏÖ´ÎÊý)ÓÐÓ°Ï죬Äܲ


Ïà¹ØÎÊ´ð£º

JSP/Servlet½»»¥ - Java / Web ¿ª·¢

JSPÒ³ÃæÖÐÓжà¸öradio°´Å¥
  JSPÒ³Ã潫²ÎÊýPOST¸øservlet
  
  ÒªÇóÈçÏÂ;
  1.Ñ¡ÔñÒ»¸öradio£¬µ÷ÓÃservlet servletÖиù¾Ý²ÎÊýµ÷ÓÃÆäËû½Ó¿Ú£¬³ý·ÇÑ¡ÖиÃradio²¢µã»÷JSPÖеÄʵР......

JAVAµç×Ӵʵ䣿 - Java / Java SE

¸÷·´óÏÀ¸ø¸ö˼·£¬²»ÊÇÔÚÏßµÄÄÇÖÖ£¬¾ÍÊÇÒ»¸ö×öÆÕͨµÄÓ¦ÓóÌÐò¡£


´Ê¿âÔõôÉú³ÉÄØ£¿

²»»á¡£

ÒýÓÃ
´Ê¿âÔõôÉú³ÉÄØ£¿
ÕÒ±¾×Öµä

ÒýÓÃ
´Ê¿âÔõôÉú³ÉÄØ£¿
Êý¾Ý¿â ºÇºÇ

ÓÃmap ¼üÖµ¶ÔÓ¦

Èç¹ûÓÃÊý¾Ý¿ ......

java socket email ÎÊÌâ - Java / Java SE

ÎÒÔÚ javaºËÐļ¼ÊõÉÏ ¿´ÁËÒ»¸ö ÀûÓà Java socket emailµÄÀý×Ó ¿ÉÊÇÔõôҲ ²»³É¹¦ Ϊʲô£¿
Ô´Âë
Java code:

package cn.com.test.email;
import java.awt.GridBagLayout;
import java.awt.event.Action ......

tomcat»·¾³ÏÂjsp±àÒë´íÎó£¬Çó½â£¡ - Java / Web ¿ª·¢

org.apache.jasper.JasperException: Unable to compile class for JSP: 
An error occurred at line: 52 in the jsp file: /vip_info.jsp
ÕË cannot be resolved
49: <table border="1& ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ