StrutsŹϵͳѧϰ飺
StrutsŹϵͳѧϰ˵

1.Ϊѧϰstrutsṩһӡ

2.򲿷ʵAJAXܣDWRܡ

3.лΪMYECLIPSE 5.0 + TOMACT 5.5 + ORACLE 9i

4.˵libĿ¼µcommons-pool-1.2.jarcommons-dbcp-1.2.jarojdbc14.jarƵTOMACTĿ¼µCOMMONµLIBĿ¼С

5.Ҫ޸cn.lingqi.toolDBConnection.javaеò֡ԼWebRoot\WEB-INFµstruts-config.xmlݿò֡Լ޸ΪMYSQLӡο£

Sql Server7.0/2000ݿ 
static private String strDriver = "com.microsoft.jdbc.sqlserver.SQLServerDriver";

    static private String strUrl = "jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=mydb";

    static private String strUser = "scmgroup2";

    static private String strPwd = "123";

MYSQLģ
static private String strDriver = "com.mysql.jdbc.Driver";

    static private String strUrl = "jdbc:mysql://localhost:3306/testdb";

    static private String strUser = "scmgroup2";

    static private String strPwd = "123";

6.½ûtestΪա

7.ӦҪ˷ҳܡ

8.QQ88190738mail:ck-0123@163.com

ߣ


ݿ

create table news(
newsid number primary key,
title varchar2(20),
content varchar2(1000),
createdate varchar2(20)
);


create sequence news_seq
minvalue 1
maxvalue 9999999
start with 1
increment by 1
nocache; 


Create Or Replace Trigger news_tri
Before insert
on student
for each row
begin
select news_seq.NEXTVAL into :new.newsid from dual;
end;





ԼһкnewsidĴ

Էʣhttp://lingqi1818.blog.chinaitlab.com
