2005年12月23日
form不可以嵌套,但是可以采取一些办法回避这一问题,如下例子你试试看
<form action="" method=post name=theform>
  <select name=myselect>
    <option value="0">0</option>
    :
    :
  </select>
<input type=text name=mytext>
<input type=checkbox name=mycheckbox>
<input type=button value=提交到页面1 onclick="javascript:act1()">
<input type=button value=提交到页面2 onclick="javascript:act2()">
<input type=button value=提交到页面2 onclick="javascript:act3()">
</form>
<script language=javascript>
function act1()
{
  theform.action="页面1.asp";
//如果想带参数,还可以像下面这样写
//  theform.action="页面1.asp?myvalue=10";
  :
//这里可以给form表单的元素赋值
  :
  theform.submit
}
function act1()
{
  theform.action="页面2.asp";
  :
//这里可以给form表单的元素赋值
  :
  theform.submit
}
function act1()
{
  theform.action="页面3.asp";
  :
//这里可以给form表单的元素赋值
  :
  theform.submit
}
</script>
2005年12月10日

package demo;

abstract class ModelA{
    abstract void decrease(int decraseCash);
}

class UserA extends ModelA{
    public int cash = 100;
   
    public void decrease(int decraseCash){
        this.cash = this.cash – decraseCash;
    }
   
}

class UserB extends ModelA{
    public int cash = 200;
   
    public void decrease(int decreaseCash){
        this.cash = this.cash – decreaseCash;
    }
}

class eOne{
    private java.util.Vector users = new java.util.Vector();
   
    public void addUser(ModelA a){
        this.users.add(a);
    }
   
    public void decrease(int number){
        java.util.Iterator i = this.users.iterator();
        while(i.hasNext()){
            ((ModelA)i.next()).decrease(number);
        }
    }
}

class Demo{
    public static void main(String args[]){
        UserA a1 = new UserA();
        UserA a2 = new UserA();
        UserB b1 = new UserB();
        UserB b2 = new UserB();
        eOne e = new eOne();
        e.addUser(a1);
        e.addUser(b1);
        e.decrease(50);
        System.out.println(a1.cash);
        System.out.println(a2.cash);
        System.out.println(b1.cash);
        System.out.println(b2.cash);
    }
}

F1 Help

ctrl + F2 结束程序

F3 查找下一个

shift + F3 反向查找下一个

ctrl + F 查找

ctrl + p 路径查找

ctrl + F4 运行到当前位置

F5 设置断点

F7 跟入

F8 单步

F9 运行

ctrl + F9 编译工程

shift + F9 调试模式运行

ctrl + shift + F9 编译当前类

ctrl + H 显示本类成员

ctrl + J 显示模板

ctrl + shift + c 自动完成错误捕捉代码

ctrl + Enter /mouseClick 当前关键字追踪

ctrl + shit + 数字(0-9) 设置/去除标签

ctrl + 数字(0-9) 返回标签位置

ctrl + alt + -> / <- 返回最近访问点

ctrl + -> / <- 光标跳过当前单位词

ctrl + shift + -> / <- 选择单位词

ctrl + 上下方向键 滚动屏幕

ctrl + home/end/pageup/pagedown

shift +盘方向键/home/end/pageup/pagedown 选择

ctrl + e 增量式查找

ctrl + w 捕捉离光标最近的单词

ctrl + shift + h 参数查找

ctrl + alt + space class insight

ctrl + F4 关闭当前类

ctrl + shift + F4 关闭(显示选择)

ctrl + B 切换窗体

ctrl + F6 切换窗体

ctrl + alt + p/c/m/z/s 视图开关

ctrl + g 到指定行

Tab 格式化宿进

ctrl + / 注释/去除注释选择行

ctrl + shift + I 宿进

ctrl + shift + U 反向宿进

2005年12月07日
Db Name: Microsoft SQL Server (6.5, 7, 2000 and 2005) and Sybase (10, 11, 12).
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
JDBC Name: jTDS
Home Page: http://jtds.sourceforge.net/
JDBC Ver: 1.0.2
Download: http://sourceforge.net/project/showfiles.php?group_id=33291
Conn Code:
  Class.forName("net.sourceforge.jtds.jdbc.Driver ");
  Connection con = DriverManager.getConnection("jdbc:jtds:sqlserver://host:port/database","user","password");
or
  Connection con = DriverManager.getConnection("jdbc:jtds:sybase://host:port/database","user","password");

  Db Name: Microsoft SQL Server 2000
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
JDBC Name: SQL Server 2000 Driver for JDBC
Home Page: http://www.microsoft.com/china/sql/
JDBC Ver: (SQL Server 2000 Driver for JDBC)
Download: http://www.microsoft.com/china/sql/downloads/2000/jdbc.asp
Conn Code:
  Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
  Connection conn = DriverManager.getConnection ("jdbc:microsoft:sqlserver://server1:1433","user","password");

  Db Name: Oracle
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
JDBC Name: Connector/J
Home Page: http://www.oracle.com/technology/software/tech/java/
JDBC Ver: (based on Oracle)
Download: http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/
Conn Code:
  Class.forName("oracle.jdbc.driver.OracleDriver");
  Connection con = DriverManager.getConnection("jdbc:oracle:thin:@host:port:databse","user","password");

  Db Name: MySQL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
JDBC Name: Connector/J
Home Page: http://dev.mysql.com/
JDBC Ver: 3.1
Download: http://dev.mysql.com/downloads/
Conn Code:
  Class.forName("com.mysql.jdbc.Driver");
  Connection con = DriverManager.getConnection("jdbc:mysql://host:port/database","user","password");

  Db Name: Sybase
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
JDBC Name: jConnect
Home Page: http://www.sybase.com.cn/cn/content/SDN/
JDBC Ver: 4.5/5.5
Download: http://www.sybase.com/detail_list?id=13&morenavId=8668&multi=true&SR=Y&show=1265
Conn Code:
Class.forName("com.sybase.jdbc2.jdbc.SybDriver").newInstance();
DriverManager.getConnection("jdbc:sybase:Tds:IP:2638?ServiceName="+database,"user","password");

  Db Name: Postgresql
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
JDBC Name: PostgreSQL JDBC
Home Page: http://jdbc.postgresql.org/
JDBC Ver: 8.0 Build 310
Download: http://jdbc.postgresql.org/download.html
Conn Code:
  Class.forName("org.postgresql.Driver");
  Connection con = DriverManager.getConnection("jdbc:postgresql://host:port/database","user","password");

  Db Name: IBM Informix
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
JDBC Name: Informix JDBC Driver (IBM Informix JDBC V3.0)
Home Page: http://www-306.ibm.com/software/data/informix/
JDBC Ver: 3.0.JC1
Download: http://www14.software.ibm.com/webapp/download/search.jsp?go=y&rs=ifxjdbc
Conn Code:
  Class.forName("com.informix.jdbc.IfxDriver").newInstance();
  Connection conn= DriverManager.getConnection("jdbc:informix-sqli://123.45.67.89:1533/myDB:INFORMIXSERVER=myserver;user=testuser;password=testpassword";);

  Db Name: IBM DB2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
JDBC Name: DB2 JDBC Universal Driver
Home Page: http://www-306.ibm.com/software/data/db2/udb/
JDBC Ver:
Download: http://www-128.ibm.com/developerworks/db2/downloads/jcc/
Conn Code:
  Class.forName("com.ibm.db2.jdbc.app.DB2Driver ").newInstance();
  Connection conn= DriverManager.getConnection("jdbc:db2://localhost:5000/sample",user,password);

IBM AS400主机在用的JDBC语法
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  有装V4R4以上版本的Client Access Express
  可以在C:\Program Files\IBM\Client Access\jt400\lib
  找到 driver 档案 jt400.zip,并更改扩展名成为 jt400.jar
Conn Code:
  java.sql.DriverManager.registerDriver (new com.ibm.as400.access.AS400JDBCDriver ());
  Class.forName("com.ibm.as400.access.AS400JDBCConnection");
  con = DriverManager.getConnection("jdbc:as400://IP","user","password");

  Db Name: Ms Access or Ms Foxpro
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Conn Code:
  step 1: 配置 odbc (例如:myDb)
  step 2:
  String dbURL = "jdbc:odbc:myDb";
  Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
 Connection conn = DriverManager.getConnection(dbURL);
or
  String dbURL = "jdbc:odbc:driver={MicrosoftAccessDriver(*.mdb)};DBQ=dabaseName.mdb";
  Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
 Connection conn = DriverManager.getConnection(dbURL);