搜索资源列表
2006081319475018632
- 带进度条的文件上传(java+ajax源码) 在写代码的时候,还要用到关于servlet的包servlet-api.jar。 写完后调试的过程中,老报错:java.lang.NoClassDefFoundError: org/apache/commons/io/output/DeferredFileOutputStream,后来一查才知道少了commons-io-1.2.jar,加上后,就ok了。 关于获取及显示进度部分,用了我原来自己写的一个ajax的应用架构,从中抽取了
JSP+MYSQLdzbbs
- jSP编写的了BBS系统 架設方法 : 解壓縮dzbbs.zip後,打開dzbbs/set.jsp,修改以下 try{ cn=DriverManager.getConnection(\"jdbc:mysql://localhost/mysql?useUnicode=true&characterEncoding=big5\",\"root\",\"pass\") // mysql為資料庫名稱,root 為用戶帳號 , pass為用戶密碼 }catch(Exception
liuyan
- jsp 留言系统try { Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance() } catch (InstantiationException e) { // TODO Auto-generated catch block e.printStackTrace() } catch (IllegalAccessException e) {
thread
- java 线程 静态锁,对象锁, synchronized 是锁方法还是锁对象?还是锁类?如何实现?? 部分代码如下, public static Object lock=new Object() //静态锁,锁类,不是锁对象了!!所以两个线程同时 运行两个 TestThread 的execute( ),也可以同步!!! public void execute(){ // synchronized(lock){ for(int i=0 i<
javagalaxy0jamm-0.9.0
- Jamm itself: * Investigate case-sensitivity in JNDI, LDAP, and the LdapFacade. * Implement timestamp and enabled attributes. * Delete account. * Delete domain. * Assign "postmasters" * Change/delete assign postmaster@dom
appcam
- java 资产管理public class BaseDAO { protected Connection conn=null protected PreparedStatement ps=null public BaseDAO(){ try{ this.conn = JdbcUtils.getCurrentConnection() }catch(SQLException e){ e.printStackTrace() }
05
- 编写一个create.jsp页面,用文本框输入一个名字,调用bean在Tomcat服务器的webapps目录下创建此目录。-< @ page contentType="text/html charset=gb2312" > < @ page import="bean.Computer" > < @ page import="java.io.*" > < double num1=0,num2=0 try{ num1
al
- try语句块 ---可能发生异常的代码 catch(Exception e)发生异常----捕获异常 final不管什么情况都会执行的代码块---最终被执行的代码---- try block the code may be an exception catch (Exception e) an exception---- no matter what happens to catch the exception final block of code will execute the c
car
- GUI Driver CarPark.java:287: cannot find symbol symbol : class IllegalOperationException location: class ro.polak.multilevelcarpark.controllers.CarPark catch(IllegalOperationException e){gui.simpleDialog("System Illegal Operation", e.g
CatchButtonGame
- 一个打地鼠的游戏,初始时随机生成一个点击我的图标,在点击后,地鼠会跳到别的地方去,当点击非我的图标时,没有反应-Upon initialisation, the application should randomly choose where to locate the button containing the text "Click me". ii) When the user attempts to follow the instruction on the labelled bu
xuexi
- 主程序 关于学生信息管理系统的 程序开发的代码- Public void jButton1_actionPerformed(ActionEvent e) { driver=jTextField1.getText() URL=jTextField2.getText() table=jTextField3.getText() name=jTextField4.getText() password=
try-catch-scopes
- Exception variables used in try-catch should be scoped, e.g.
数据库连接
- 数据库连接 DBC连接数据库 ?创建一个以JDBC连接数据库的程序,包含7个步骤: 1、加载JDBC驱动程序: 在连接数据库之前,首先要加载想要连接的数据库的驱动到JVM(Java虚拟机), 这通过java.lang.Class类的静态方法forName(String className)实现。 例如: try{ //加载MySql的驱动类 Class.forName("