日本中文字幕一区,秋霞在线一区,三级国产三级在线http://www.aygfsteel.com/oksonic/category/5896.htmloksonic博客zh-cnWed, 29 Dec 2021 22:08:01 GMTWed, 29 Dec 2021 22:08:01 GMT60研發(fā)全流程操作繁瑣搜索本身很復(fù)雜SFDHASDGhttp://www.aygfsteel.com/oksonic/archive/2021/12/30/438642.htmloksonicoksonicWed, 29 Dec 2021 20:28:00 GMThttp://www.aygfsteel.com/oksonic/archive/2021/12/30/438642.htmlhttp://www.aygfsteel.com/oksonic/comments/438642.htmlhttp://www.aygfsteel.com/oksonic/archive/2021/12/30/438642.html#Feedback0http://www.aygfsteel.com/oksonic/comments/commentRss/438642.htmlhttp://www.aygfsteel.com/oksonic/services/trackbacks/438642.html閱讀全文

oksonic 2021-12-30 04:28 發(fā)表評論
]]>
思路與目標(biāo)CMPSDFJDAFhttp://www.aygfsteel.com/oksonic/archive/2021/12/30/438641.htmloksonicoksonicWed, 29 Dec 2021 20:27:00 GMThttp://www.aygfsteel.com/oksonic/archive/2021/12/30/438641.htmlhttp://www.aygfsteel.com/oksonic/comments/438641.htmlhttp://www.aygfsteel.com/oksonic/archive/2021/12/30/438641.html#Feedback0http://www.aygfsteel.com/oksonic/comments/commentRss/438641.htmlhttp://www.aygfsteel.com/oksonic/services/trackbacks/438641.html閱讀全文

oksonic 2021-12-30 04:27 發(fā)表評論
]]>
更快交付——全流程操作簡單khksdfgwekjffghttp://www.aygfsteel.com/oksonic/archive/2021/12/30/438638.htmloksonicoksonicWed, 29 Dec 2021 20:24:00 GMThttp://www.aygfsteel.com/oksonic/archive/2021/12/30/438638.htmlhttp://www.aygfsteel.com/oksonic/comments/438638.htmlhttp://www.aygfsteel.com/oksonic/archive/2021/12/30/438638.html#Feedback0http://www.aygfsteel.com/oksonic/comments/commentRss/438638.htmlhttp://www.aygfsteel.com/oksonic/services/trackbacks/438638.html閱讀全文

oksonic 2021-12-30 04:24 發(fā)表評論
]]>
HOUGH_GRADIENT 表示檢測階段圓心的累加閾值http://www.aygfsteel.com/oksonic/archive/2021/12/27/437097.htmloksonicoksonicMon, 27 Dec 2021 03:47:00 GMThttp://www.aygfsteel.com/oksonic/archive/2021/12/27/437097.htmlhttp://www.aygfsteel.com/oksonic/comments/437097.htmlhttp://www.aygfsteel.com/oksonic/archive/2021/12/27/437097.html#Feedback0http://www.aygfsteel.com/oksonic/comments/commentRss/437097.htmlhttp://www.aygfsteel.com/oksonic/services/trackbacks/437097.html

oksonic 2021-12-27 11:47 發(fā)表評論
]]>
minDist、param1、param2、minRadiushttp://www.aygfsteel.com/oksonic/archive/2021/12/27/436707.htmloksonicoksonicSun, 26 Dec 2021 21:53:00 GMThttp://www.aygfsteel.com/oksonic/archive/2021/12/27/436707.htmlhttp://www.aygfsteel.com/oksonic/comments/436707.htmlhttp://www.aygfsteel.com/oksonic/archive/2021/12/27/436707.html#Feedback0http://www.aygfsteel.com/oksonic/comments/commentRss/436707.htmlhttp://www.aygfsteel.com/oksonic/services/trackbacks/436707.html閱讀全文

oksonic 2021-12-27 05:53 發(fā)表評論
]]>
minRadius 為最小半徑 param1 對于http://www.aygfsteel.com/oksonic/archive/2021/12/27/436706.htmloksonicoksonicSun, 26 Dec 2021 21:52:00 GMThttp://www.aygfsteel.com/oksonic/archive/2021/12/27/436706.htmlhttp://www.aygfsteel.com/oksonic/comments/436706.htmlhttp://www.aygfsteel.com/oksonic/archive/2021/12/27/436706.html#Feedback0http://www.aygfsteel.com/oksonic/comments/commentRss/436706.htmlhttp://www.aygfsteel.com/oksonic/services/trackbacks/436706.html閱讀全文

oksonic 2021-12-27 05:52 發(fā)表評論
]]>
一個Object,以及聲明為Object…的變長參數(shù)http://www.aygfsteel.com/oksonic/archive/2021/12/27/436704.htmloksonicoksonicSun, 26 Dec 2021 21:50:00 GMThttp://www.aygfsteel.com/oksonic/archive/2021/12/27/436704.htmlhttp://www.aygfsteel.com/oksonic/comments/436704.htmlhttp://www.aygfsteel.com/oksonic/archive/2021/12/27/436704.html#Feedback0http://www.aygfsteel.com/oksonic/comments/commentRss/436704.htmlhttp://www.aygfsteel.com/oksonic/services/trackbacks/436704.html閱讀全文

oksonic 2021-12-27 05:50 發(fā)表評論
]]>
是static方法那子類中的方法隱藏了父類中的方法http://www.aygfsteel.com/oksonic/archive/2021/12/27/436703.htmloksonicoksonicSun, 26 Dec 2021 21:49:00 GMThttp://www.aygfsteel.com/oksonic/archive/2021/12/27/436703.htmlhttp://www.aygfsteel.com/oksonic/comments/436703.htmlhttp://www.aygfsteel.com/oksonic/archive/2021/12/27/436703.html#Feedback0http://www.aygfsteel.com/oksonic/comments/commentRss/436703.htmlhttp://www.aygfsteel.com/oksonic/services/trackbacks/436703.html閱讀全文

oksonic 2021-12-27 05:49 發(fā)表評論
]]>
這種情況下,編譯器會報錯,并且提示這方法調(diào)用有二義性。http://www.aygfsteel.com/oksonic/archive/2021/12/27/436701.htmloksonicoksonicSun, 26 Dec 2021 21:48:00 GMThttp://www.aygfsteel.com/oksonic/archive/2021/12/27/436701.htmlhttp://www.aygfsteel.com/oksonic/comments/436701.htmlhttp://www.aygfsteel.com/oksonic/archive/2021/12/27/436701.html#Feedback0http://www.aygfsteel.com/oksonic/comments/commentRss/436701.htmlhttp://www.aygfsteel.com/oksonic/services/trackbacks/436701.html閱讀全文

oksonic 2021-12-27 05:48 發(fā)表評論
]]>
其中選擇一個最為貼切貼切程度關(guān)鍵就是形式參數(shù)類型的繼承關(guān)系http://www.aygfsteel.com/oksonic/archive/2021/12/27/436697.htmloksonicoksonicSun, 26 Dec 2021 21:45:00 GMThttp://www.aygfsteel.com/oksonic/archive/2021/12/27/436697.htmlhttp://www.aygfsteel.com/oksonic/comments/436697.htmlhttp://www.aygfsteel.com/oksonic/archive/2021/12/27/436697.html#Feedback0http://www.aygfsteel.com/oksonic/comments/commentRss/436697.htmlhttp://www.aygfsteel.com/oksonic/services/trackbacks/436697.html閱讀全文

oksonic 2021-12-27 05:45 發(fā)表評論
]]>
即聲明為Object的形式參數(shù)所對應(yīng)的實際參數(shù)為nullhttp://www.aygfsteel.com/oksonic/archive/2021/12/27/436694.htmloksonicoksonicSun, 26 Dec 2021 21:36:00 GMThttp://www.aygfsteel.com/oksonic/archive/2021/12/27/436694.htmlhttp://www.aygfsteel.com/oksonic/comments/436694.htmlhttp://www.aygfsteel.com/oksonic/archive/2021/12/27/436694.html#Feedback0http://www.aygfsteel.com/oksonic/comments/commentRss/436694.htmlhttp://www.aygfsteel.com/oksonic/services/trackbacks/436694.html

oksonic 2021-12-27 05:36 發(fā)表評論
]]>
為struts-menu的樹型菜單加入復(fù)選框http://www.aygfsteel.com/oksonic/archive/2007/07/20/131542.htmloksonicoksonicFri, 20 Jul 2007 11:18:00 GMThttp://www.aygfsteel.com/oksonic/archive/2007/07/20/131542.htmlhttp://www.aygfsteel.com/oksonic/comments/131542.htmlhttp://www.aygfsteel.com/oksonic/archive/2007/07/20/131542.html#Feedback8http://www.aygfsteel.com/oksonic/comments/commentRss/131542.htmlhttp://www.aygfsteel.com/oksonic/services/trackbacks/131542.html閱讀全文

oksonic 2007-07-20 19:18 發(fā)表評論
]]>
速動畫教程第三十三集 使用NetBean開發(fā)之用戶管理http://www.aygfsteel.com/oksonic/archive/2007/05/14/117454.htmloksonicoksonicMon, 14 May 2007 14:52:00 GMThttp://www.aygfsteel.com/oksonic/archive/2007/05/14/117454.htmlhttp://www.aygfsteel.com/oksonic/comments/117454.htmlhttp://www.aygfsteel.com/oksonic/archive/2007/05/14/117454.html#Feedback9http://www.aygfsteel.com/oksonic/comments/commentRss/117454.htmlhttp://www.aygfsteel.com/oksonic/services/trackbacks/117454.html使用NetBean + Visual Web Pack 5.5開發(fā)之用戶管理

 

下載地址:www.oksonic.cn  www.oksonic.com.cn

 

1.       介紹

       用戶的增、刪、改操作

      

2.       準(zhǔn)備

a)         NetBean5.5中文版

b)        JDK1.5.0.11

c)        Visual Web Pack 5.5

 

3.       開發(fā)步驟

a)         新建項目user

                         i.              拷貝mysqljdbc驅(qū)動到netbean安裝目錄下的common/lib目錄下,沒有這一步的話在運行程序時會出現(xiàn)找不到jdbc驅(qū)動的錯誤提示

b)        創(chuàng)建數(shù)據(jù)源

                         i.              創(chuàng)建用戶表

c)        使用數(shù)據(jù)組件

                         i.              設(shè)置綁定數(shù)據(jù)源

                       ii.              更改姓名、密碼字段為可編輯狀態(tài)

d)        增加新用戶事件

public String add_action() {

        try {

            // 創(chuàng)建一個空的記錄行

            RowKey rk = usersDataProvider.appendRow();

            usersDataProvider.setCursorRow(rk);

        } catch (Exception e){

            error(e.getMessage());

        }

        return null;

    }

         

e)         增加保存事件

     

public String save_action() {

        try{

            usersDataProvider.commitChanges();

            usersDataProvider.refresh();

        } catch (Exception e){

            error(e.getMessage());

        }

        return null;

    }

f)         增加刪除事件

     

public String delete_action() {

        try{

            RowKey rk = tableRowGroup1.getRowKey();

            usersDataProvider.removeRow(rk);

            usersDataProvider.commitChanges();

            usersDataProvider.refresh();

        } catch (Exception e){

            error(e.getMessage());

        }

        return null;

    }

 

4.       參考資料

Java Studio Creator 教程



oksonic 2007-05-14 22:52 發(fā)表評論
]]>
速動畫教程第三十二集 使用NetBean5.5可視環(huán)境開發(fā)JSF應(yīng)用程序http://www.aygfsteel.com/oksonic/archive/2007/05/07/115653.htmloksonicoksonicSun, 06 May 2007 18:22:00 GMThttp://www.aygfsteel.com/oksonic/archive/2007/05/07/115653.htmlhttp://www.aygfsteel.com/oksonic/comments/115653.htmlhttp://www.aygfsteel.com/oksonic/archive/2007/05/07/115653.html#Feedback6http://www.aygfsteel.com/oksonic/comments/commentRss/115653.htmlhttp://www.aygfsteel.com/oksonic/services/trackbacks/115653.html使用NetBean5.5可視環(huán)境開發(fā)JSF應(yīng)用程序

下載地址:www.oksonic.cn 

1.       準(zhǔn)備

a)         JDK1.5.0.6

b)        NetBean5.5       http://www.netbeans.org/

c)        Visual Web Pack  http://www.netbeans.org/

 

2.       開發(fā)步驟

a)         安裝NetBean5.5、安裝Visual Web Pack

b)        創(chuàng)建一個簡單的登錄項目

                         i.              新建一個Visual Web工程名稱為login

                       ii.              拖動一個文本框組件和一個口令字段組件到頁面中,修改ID屬性為usernamepassword,修改Label屬性為姓名、密碼

                      iii.              拖動一個按鈕組件到頁面中,修改按鈕的IDlogin,修改text屬性為登錄

                     iv.              雙擊登錄按鈕界面跳轉(zhuǎn)到代碼編輯頁,修改光標(biāo)所在的代碼為以下內(nèi)容:

public String login_action() {

        // 待做事項:處理按鈕單擊操作。返回的值是一個導(dǎo)航

        // 條件名稱,如果它為 Null,則返回到同一頁。

        return "success";

    }

根據(jù)注釋內(nèi)容可以看到這里的return的返回值為success,根據(jù)這個返回值,我們只需要配置相應(yīng)的導(dǎo)航就可以控制頁面到想轉(zhuǎn)的地方了

                       v.              新建一個welcome

                     vi.              welcome頁中加入一個靜態(tài)文本組件,并修改它的text屬性為“您已經(jīng)成功登錄了!

                    vii.              點擊左邊樹型菜單中的“頁面導(dǎo)航”項進(jìn)入頁面導(dǎo)航的配置頁,這時可以看到兩個圖標(biāo),一個是Page1.jsp,另一個是welcome.jsp,在Page1.jsp圖標(biāo)的右邊可以看到一個小方塊,點擊方塊并拖動到welcome.jsp文件上后放開鼠標(biāo),這時就看到有一條線將兩個圖標(biāo)連在一塊了,上面還有文字信息,點中這條線后,修改它的屬性“結(jié)果”為“success”這里的“success”就是根據(jù)上面的login_action方法中所返回的“success”文字來進(jìn)行判斷,只要文字相同就跳轉(zhuǎn)到welcome頁面

                  viii.              按下F6或是點擊菜單項的“運行”à“運行主項目”就可以啟動tomcat進(jìn)行測試了,項目啟動后會自動打開IE并顯示當(dāng)前頁面,點擊登錄按鈕就可以看到頁面跳轉(zhuǎn)到了welcome.jsp

c)        表單驗證

                         i.              修改文本框組件和口令字required屬性為true,也就是打上鉤,這里的意思是這兩個文本框必須輸入內(nèi)容后才可以提交,這時進(jìn)行測試就可以看到效果了,不輸入內(nèi)容就提交的話文字信息就會變?yōu)榧t色的了

                       ii.              加入長度驗證器,將文本框組件和口令字段組件的validator屬性從下拉列表中選擇lengthValidator1,在左邊的樹型菜單中選擇lengthValidator1,修改maximunminimun屬性為102,這里的意思是驗證用戶輸入數(shù)據(jù)的最大長度和最小長度分別為10個字符和2個字符

d)        調(diào)試代碼

                         i.              雙擊登錄按鈕進(jìn)入代碼編輯頁面加入以下代碼

                    

public String login_action() {

        // 待做事項:處理按鈕單擊操作。返回的值是一個導(dǎo)航

        // 條件名稱,如果它為 Null,則返回到同一頁。

        if(!this.username.getValue().equals("oksonic"))

            return null;

        return "success";

    }

                     這里的意思是判斷用戶輸入的姓名是否是“oksonic”不是的話就返回null,返回值為null的話就是回到提交頁面

                       ii.              按下F5或是點擊菜單項的“運行”à“調(diào)試主項目”就可以啟動tomcat進(jìn)行調(diào)試了,在上面代碼的if語句前打上一個斷點,在頁面中輸入信息后點登錄按鈕,這時就可以看到代碼運行到斷點處就停止了,這時可以使用快捷鍵進(jìn)行操作。F7是跳到下一行代碼,Ctrl+F5是繼續(xù)執(zhí)行,其它的可以查看菜單“運行”里的其它菜單項后的快捷方式

 

       本教程到此結(jié)束,謝謝收看!

       聯(lián)系方法:           oksonic@tom.com

       其它教程下載:    www.oksonic.cn

      



oksonic 2007-05-07 02:22 發(fā)表評論
]]>
速動畫教程第三十一集 使用Axis2構(gòu)建Hello應(yīng)用 http://www.aygfsteel.com/oksonic/archive/2007/04/30/114698.htmloksonicoksonicMon, 30 Apr 2007 01:06:00 GMThttp://www.aygfsteel.com/oksonic/archive/2007/04/30/114698.htmlhttp://www.aygfsteel.com/oksonic/comments/114698.htmlhttp://www.aygfsteel.com/oksonic/archive/2007/04/30/114698.html#Feedback4http://www.aygfsteel.com/oksonic/comments/commentRss/114698.htmlhttp://www.aygfsteel.com/oksonic/services/trackbacks/114698.html

 

 

速動畫教程第三十一集

下載地址:www.oksonic.cn   www.oksonic.com.cn  

 

使用Axis2構(gòu)建Hello應(yīng)用

 

A.    環(huán)境準(zhǔn)備

a.     Eclipse3.2.2

b.     MyEclipse5.5m2

c.     Axis2.1.1 War http://ftp.wayne.edu/apache/ws/axis2/1_1_1/axis2.war

d.     Axis Eclipse plug-in(代碼生成工具和打包工具)

http://apache.justdn.org/ws/axis2/tools/1_1_1/axis2-eclipse-codegen-wizard.zip

http://apache.justdn.org/ws/axis2/tools/1_1_1/axis2-eclipse-service-archiver-wizard.zip

B.    開發(fā)步驟

a.       創(chuàng)建一個web項目,名稱為hello

b.       生成wsdl文件

打開MyEclipseweb service中的wsdl向?qū)?/span>

文件名為hello.wdsl,下一步

目標(biāo)地址為http://www.oksonic.cn/hello/,其它為默認(rèn),完成

修改hello.wsdl文件為以下格式

C.       根據(jù)wsdl文件生成客戶端java代碼

使用Ctrl + N 打開Axis Wizards中的Axis2 Code Generator

使用默認(rèn)的第一項,下一步

選擇生成的hello.wsdl文件D:\oksonic\workspace\hello\src\hello.wsdl,下一步

參照下圖進(jìn)行配置

解壓Axis2.1.1文件到C盤,然后參照下圖進(jìn)行配置

將加入進(jìn)來的lib目錄移到WEB-INF目錄下,刷新一下項目就可以看到生成的代碼了。

 

D.       根據(jù)wsdl文件生成服務(wù)端java代碼

使用Ctrl + N 打開Axis Wizards中的Axis2 Code Generator

使用默認(rèn)的第一項,下一步

選擇生成的hello.wsdl文件D:\oksonic\workspace\hello\src\hello.wsdl,下一步

參照下圖進(jìn)行配置

 

下一步

E.       修改HelloSkeleton代碼,內(nèi)容如下:

package org.example.www.hello;

 

public class HelloSkeleton {

 

    public org.example.www.hello.HelloResponse hello(

           org.example.www.hello.Hello param0)    {

       try {

           HelloResponse response = new HelloResponse();

           response.setOut(param0.getIn() + "歡迎你的到來!");

           return response;

       } catch (UnsupportedOperationException e) {

           throw e;

       }

    }

}

F.       發(fā)布項目

1.     打開Axis2的向?qū)Вx擇Axis2 Service Archiver

2.     選擇class文件所在的目錄,如:D:\oksonic\workspace\hello\WebRoot\WEB-INF\classes

3.     選擇項目中resources目錄下的hello.wsdl文件如:D:\oksonic\workspace\hello\resources\hello.wsdl

4.     跳過一下步,這里選擇resources目錄下的service.xml文件如:D:\oksonic\workspace\hello\resources\services.xml

5.     這一步是輸出一個jar文件或是aar都可以,上面是輸出路徑,下面是文件名,如:C:\Documents and Settings\Administrator\桌面,Hello.jar

6.     axis2.1.1.war文件拷貝到tomcat安裝路徑下的webapps目錄下,這里可以選擇啟動tomcat來解開axis2.1.1.war,也可以直接將文件改名為zip后解壓,解壓后的文件夾名稱為axis2,然后將Hello.jar拷貝到asix2.1.1/WEB-INF/service目錄下

 

G.       測試

啟動tomcat服務(wù),打開IE在地址欄中輸入http://localhost/axis2,進(jìn)入頁面后點擊Services鏈接,在下一個頁面中將會看到hello服務(wù)的鏈接,點開此鏈接就可以看到服務(wù)信息了。

接下來使用客戶端測試代碼進(jìn)行測試,修改HelloTest.java文件中的testHello方法,內(nèi)容如下:

public void testHello() throws java.lang.Exception {

       String url = "http://localhost/axis2/services/Hello";

       HelloStub stub = new HelloStub(url);

       Hello hello = (Hello) getTestObject(Hello.class);

       hello.setIn("oksonic");

       System.out.println(stub.Hello(hello).getOut());

       assertNotNull(stub.Hello(hello));

    }

這里使用到了Junit,所以還需要將Junitjar包加到項目中

 

為了制作更多更好的錄像教程,希望大家多多提供相關(guān)資料!!!

聯(lián)系方法:

 http://www.oksonic.cn

 Email: oksonic@tom.com

 QQ: 71279650

 



oksonic 2007-04-30 09:06 發(fā)表評論
]]>
速動畫教程第二十九集 單點登錄CAS的使用方法http://www.aygfsteel.com/oksonic/archive/2007/04/02/107854.htmloksonicoksonicSun, 01 Apr 2007 17:36:00 GMThttp://www.aygfsteel.com/oksonic/archive/2007/04/02/107854.htmlhttp://www.aygfsteel.com/oksonic/comments/107854.htmlhttp://www.aygfsteel.com/oksonic/archive/2007/04/02/107854.html#Feedback13http://www.aygfsteel.com/oksonic/comments/commentRss/107854.htmlhttp://www.aygfsteel.com/oksonic/services/trackbacks/107854.html速動畫教程第二十九集

單點登錄CAS的使用方法


  下載地址: http://www.oksonic.cn

一.環(huán)境

a)         Windows 2003 sp1

b)        JDK1.5.0_11

c)        Tomcat 5.5.23

d)        MySql5.0

二.準(zhǔn)備

a)         cas-server-3.0.6.zip 下載地址:http://www.ja-sig.org/products/cas/index.html

b)        cas-client-java-2.1.1.zip 下載地址:同上

c)        安裝完jdkjre后,需要配置JAVA_HOMEPATH=%JAVA_HOME%\bin

三.步驟

a)        配置Tomcat使用SSL安全認(rèn)證

                         i.              使用命令提示符進(jìn)入到Tomcat安裝目錄

                       ii.              生成服務(wù)端密匙執(zhí)行以下命令

                     keytool -genkey -alias 別名keyalg RSA -keypass changeit -storepass changeit                           -keystore server.keystore

例:keytool -genkey -alias casserver -keyalg RSA -keypass changeit -storepass changeit -keystore server.keystore

運行后出現(xiàn)提示信息:

輸入keystore密碼:changeit      這里也填入主機名

您的名字與姓氏是什么?

 [Unknown] localhost           這里一定要填寫正確的主機名

您的組織單位名稱是什么?

 [Unknown] oksonic

您的組織名稱是什么?

 [Unknown] oksonic

您所在的城市或區(qū)域名稱是什么?

 [Unknown] kunming

您所在的州或省份名稱是什么?

 [Unknown] yunnan

該單位的兩字母國家代碼是什么

 [Unknown] cn

CN=localhost, OU=oksonic, O=oksonic, L=kunming, ST=yunnan, C=cn 正確嗎?

 [] y

完成后會在Tomcat目錄生成一個名為casserver的文件

                      iii.              生成服務(wù)端證書執(zhí)行以下命令

                            keytool -export -alias casserver -storepass changeit -file server.cer                                     -keystore server.keystore

                            命令執(zhí)行后生成一個server.cer的證書文件

 

                     iv.              生成客戶端密匙執(zhí)行以下命令

                            keytool -genkey -alias casclient -keyalg RSA -keypass changeit -storepass                                  changeit -keystore client.keystore

                       v.              生成客戶端證書執(zhí)行以下命令

                            keytool -export -alias casclient -storepass changeit -file client.cer                                        -keystore client.keystore

                            命令執(zhí)行后生成一個server.cer的證書文件

                     vi.              導(dǎo)入證書文件到cacerts 文件中,執(zhí)行以下命令

                            keytool -import -trustcacerts -alias server -file server.cer -keystore                                      cacerts -storepass changeit

 

                            keytool -import -trustcacerts -alias client -file client.cer -keystore                                        cacerts -storepass changeit

                            cacerts文件,拷貝到<JAVA_HOME>\jre\lib\security目錄下

 

                    vii.              拷貝cas-server-3.0.6.zip包內(nèi)的target目錄下的cas.war文件到Tomcat目錄下的webapps目錄下

                  viii.              修改Tomcat的配置文件server.xml把以下補注釋的內(nèi)容打開

<Connector port="8443" maxHttpHeaderSize="8192"

               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"

               enableLookups="false" disableUploadTimeout="true"

               acceptCount="100" scheme="https" secure="true"

               clientAuth="false" sslProtocol="TLS" />

加入紅字部份后的內(nèi)容如下:

         <Connector port="8443" maxHttpHeaderSize="8192"

keystorePass="changeit" keystoreFile="/server.keystore"

               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"

               enableLookups="false" disableUploadTimeout="true"

               acceptCount="100" scheme="https" secure="true"

               clientAuth="false" sslProtocol="TLS" />

 

b)        配置客戶端應(yīng)用

                         i.              使用Tomcat的例子jsp-examples來做客戶端

                       ii.              打開項目中的web.xml文件,加入以下配置信息

                     <filter>
                             <filter-name>CASFilter</filter-name>
                              <filter-class>
                                    edu.yale.its.tp.cas.client.filter.CASFilter
                             </filter-class>
                             <init-param>
                             <param-name>
                                    edu.yale.its.tp.cas.client.filter.loginUrl
                            </param-name>
                             <param-value>
https://localhost:8443/cas/login</param-value>
                            </init-param> 
                            <init-param>
                               <param-name>
                                          edu.yale.its.tp.cas.client.filter.validateUrl
                                   </param-name>
                            <param-value>
                                  
https://localhost:8443/cas/proxyValidate
                            </param-value>
                     </init-param>
                     <init-param>
                            <param-name>
                                    edu.yale.its.tp.cas.client.filter.serverName
                            </param-name>
                                   <param-value>
localhost:8080</param-value>
                      </init-param>
              </filter>

              <filter-mapping>
              <filter-name>CASFilter</filter-name>
                     <url-pattern>
/ *</url-pattern>
               </filter-mapping>

 

              拷貝cas-client-java-2.1.1.zip包中的casclient.jar到項目的lib目錄下

 

              現(xiàn)在可以啟動Tomcat來測試一下是否能夠進(jìn)入到登錄頁

c)         配置CAS使用數(shù)據(jù)庫進(jìn)行驗證

                         i.              MySql中的Test庫中新建app_user

       CREATE TABLE `app_user` (
                  `username` varchar(30) NOT NULL default '',
                  `password` varchar(45) NOT NULL default '',
                  PRIMARY KEY  (`username`)
         ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
添加以下用戶:
         INSERT INTO `app_user` (`username`,`password`) VALUES

                    ('oksonic','oksonic'),

                    ('oksonic1','oksonic1');

 

                      ii.              修改cas項目中的deployerConfigContext.xml文件

<bean class="org.jasig.cas.authentication.handler.support.SimpleTestUsernamePasswordAuthenticationHandler" />
注釋掉該行,在其下加入:
<bean class="org.jasig.cas.adaptors.jdbc.QueryDatabaseAuthenticationHandler">
                            <property name="sql" value="select password from
app_user where username=?" />
                            <property name="dataSource" ref="dataSource" />

                     </bean>
并添加一個bean
    <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource" destroy-method="close">
       <property name="driverClassName"><value>com.mysql.jdbc.Driver</value></property>
       <property name="url"><value>jdbc:mysql://localhost:3306/test</value></property>
       <property name="username"><value>test</value></property>
       <property name="password"><value>test</value></property>
    </bean>
拷貝cas-server-jdbc-3.0.6.jarmysql-connector-java-3.1.11-bin.jarwebapps/cas/WEB-INF/lib下。



oksonic 2007-04-02 01:36 發(fā)表評論
]]>
建了個網(wǎng)站,以供教程交流使用!www.oksonic.com.cnhttp://www.aygfsteel.com/oksonic/archive/2007/03/02/101495.htmloksonicoksonicFri, 02 Mar 2007 08:16:00 GMThttp://www.aygfsteel.com/oksonic/archive/2007/03/02/101495.htmlhttp://www.aygfsteel.com/oksonic/comments/101495.htmlhttp://www.aygfsteel.com/oksonic/archive/2007/03/02/101495.html#Feedback11http://www.aygfsteel.com/oksonic/comments/commentRss/101495.htmlhttp://www.aygfsteel.com/oksonic/services/trackbacks/101495.htmlwww.oksonic.com.cn

oksonic 2007-03-02 16:16 發(fā)表評論
]]>
速動畫教程第二十八集 Struts+Velocity簡單集成http://www.aygfsteel.com/oksonic/archive/2007/03/01/101252.htmloksonicoksonicWed, 28 Feb 2007 16:19:00 GMThttp://www.aygfsteel.com/oksonic/archive/2007/03/01/101252.htmlhttp://www.aygfsteel.com/oksonic/comments/101252.htmlhttp://www.aygfsteel.com/oksonic/archive/2007/03/01/101252.html#Feedback15http://www.aygfsteel.com/oksonic/comments/commentRss/101252.htmlhttp://www.aygfsteel.com/oksonic/services/trackbacks/101252.html閱讀全文

oksonic 2007-03-01 00:19 發(fā)表評論
]]>
速動畫教程第二十七集 SVN的安裝和配置http://www.aygfsteel.com/oksonic/archive/2007/02/10/99100.htmloksonicoksonicSat, 10 Feb 2007 01:56:00 GMThttp://www.aygfsteel.com/oksonic/archive/2007/02/10/99100.htmlhttp://www.aygfsteel.com/oksonic/comments/99100.htmlhttp://www.aygfsteel.com/oksonic/archive/2007/02/10/99100.html#Feedback9http://www.aygfsteel.com/oksonic/comments/commentRss/99100.htmlhttp://www.aygfsteel.com/oksonic/services/trackbacks/99100.html閱讀全文

oksonic 2007-02-10 09:56 發(fā)表評論
]]>
發(fā)布個人收藏資料集!文件共有69.8Mhttp://www.aygfsteel.com/oksonic/archive/2007/01/18/94757.htmloksonicoksonicThu, 18 Jan 2007 13:52:00 GMThttp://www.aygfsteel.com/oksonic/archive/2007/01/18/94757.htmlhttp://www.aygfsteel.com/oksonic/comments/94757.htmlhttp://www.aygfsteel.com/oksonic/archive/2007/01/18/94757.html#Feedback69http://www.aygfsteel.com/oksonic/comments/commentRss/94757.htmlhttp://www.aygfsteel.com/oksonic/services/trackbacks/94757.html 個人收藏資料集

?

此文檔來源于網(wǎng)絡(luò) http://www.oksonic.cn/ 整理

?

下載: 技術(shù)資料

?

1.? Java

a)???????? 基礎(chǔ)

b)??????? J2ee

???????????????????????? i.????????????? Struts

?????????????????????? ii.????????????? Hibernate

????????????????????? iii.????????????? Spring

???????????????????? iv.????????????? Jsf

?????????????????????? v.????????????? Jaas

???????????????????? vi.????????????? Log4j

??????????????????? vii.????????????? 報表

????????????????? viii.????????????? Webwork2

???????????????????? ix.????????????? Tapestry

?????????????????????? x.????????????? Digester

???????????????????? xi.????????????? Quartz

c)??????? J2me

d)??????? 其它

e)???????? Web Service

f)???????? 工作流

g)??????? 錯誤展示

h)??????? 報表

i)????????? Ajax

j)????????? eXtremeComponents

k)??????? 服務(wù)器

l)????????? Groovy

m)????? Velocity

n)??????? 插件

o)??????? 多線程

p)??????? Maven2

q)??????? Ant

r)???????? Jstl

s)???????? Junit

t)????????? POI

2.? .net

3.? Html

4.? 網(wǎng)絡(luò)

5.? Linux

6.? Windows

7.? 黑客

8.? Php

9.? Sql server

10.????????????? 方案

11.????????????? VB

12.????????????? 軟件工程

13.????????????? Ruby On Rails

14.????????????? Delphi

15.????????????? DOS

16.????????????? UNIX

17.????????????? 美工 / 動畫

18.????????????? Oracle

19.????????????? 軟件測試

20.????????????? SOA



oksonic 2007-01-18 21:52 發(fā)表評論
]]>
速動畫教程第二十六集 WebWork2 開發(fā)教程http://www.aygfsteel.com/oksonic/archive/2006/08/18/oksonic.htmloksonicoksonicThu, 17 Aug 2006 17:54:00 GMThttp://www.aygfsteel.com/oksonic/archive/2006/08/18/oksonic.htmlhttp://www.aygfsteel.com/oksonic/comments/64233.htmlhttp://www.aygfsteel.com/oksonic/archive/2006/08/18/oksonic.html#Feedback21http://www.aygfsteel.com/oksonic/comments/commentRss/64233.htmlhttp://www.aygfsteel.com/oksonic/services/trackbacks/64233.html
目錄:
1、完整的注冊和登錄演示
2、Model-Driven(模型驅(qū)動)
3、使用 JUnit 進(jìn)行單元測試
4、配置表單驗證
5、國際化支持
6、集成 spring  閱讀全文

oksonic 2006-08-18 01:54 發(fā)表評論
]]>
速動畫教程第二十四集 Tapestry4 初試http://www.aygfsteel.com/oksonic/archive/2006/07/16/58379.htmloksonicoksonicSat, 15 Jul 2006 17:05:00 GMThttp://www.aygfsteel.com/oksonic/archive/2006/07/16/58379.htmlhttp://www.aygfsteel.com/oksonic/comments/58379.htmlhttp://www.aygfsteel.com/oksonic/archive/2006/07/16/58379.html#Feedback13http://www.aygfsteel.com/oksonic/comments/commentRss/58379.htmlhttp://www.aygfsteel.com/oksonic/services/trackbacks/58379.html閱讀全文

oksonic 2006-07-16 01:05 發(fā)表評論
]]>
速動畫教程第二十二集 使用Struts上傳文件http://www.aygfsteel.com/oksonic/archive/2006/07/05/56871.htmloksonicoksonicWed, 05 Jul 2006 15:30:00 GMThttp://www.aygfsteel.com/oksonic/archive/2006/07/05/56871.htmlhttp://www.aygfsteel.com/oksonic/comments/56871.htmlhttp://www.aygfsteel.com/oksonic/archive/2006/07/05/56871.html#Feedback22http://www.aygfsteel.com/oksonic/comments/commentRss/56871.htmlhttp://www.aygfsteel.com/oksonic/services/trackbacks/56871.html閱讀全文

oksonic 2006-07-05 23:30 發(fā)表評論
]]>
速動畫教程第二十一集 IIS 集成 Tomcathttp://www.aygfsteel.com/oksonic/archive/2006/07/03/56270.htmloksonicoksonicMon, 03 Jul 2006 03:29:00 GMThttp://www.aygfsteel.com/oksonic/archive/2006/07/03/56270.htmlhttp://www.aygfsteel.com/oksonic/comments/56270.htmlhttp://www.aygfsteel.com/oksonic/archive/2006/07/03/56270.html#Feedback9http://www.aygfsteel.com/oksonic/comments/commentRss/56270.htmlhttp://www.aygfsteel.com/oksonic/services/trackbacks/56270.html閱讀全文

oksonic 2006-07-03 11:29 發(fā)表評論
]]>
速動畫教程第二十集 在線編輯器 FCKeditor 的應(yīng)用http://www.aygfsteel.com/oksonic/archive/2006/05/11/45687.htmloksonicoksonicThu, 11 May 2006 09:25:00 GMThttp://www.aygfsteel.com/oksonic/archive/2006/05/11/45687.htmlhttp://www.aygfsteel.com/oksonic/comments/45687.htmlhttp://www.aygfsteel.com/oksonic/archive/2006/05/11/45687.html#Feedback12http://www.aygfsteel.com/oksonic/comments/commentRss/45687.htmlhttp://www.aygfsteel.com/oksonic/services/trackbacks/45687.html閱讀全文

oksonic 2006-05-11 17:25 發(fā)表評論
]]>
速動畫教程第十九集 eXtremeComponents 的基礎(chǔ)配置http://www.aygfsteel.com/oksonic/archive/2006/04/22/42552.htmloksonicoksonicSat, 22 Apr 2006 15:21:00 GMThttp://www.aygfsteel.com/oksonic/archive/2006/04/22/42552.htmlhttp://www.aygfsteel.com/oksonic/comments/42552.htmlhttp://www.aygfsteel.com/oksonic/archive/2006/04/22/42552.html#Feedback10http://www.aygfsteel.com/oksonic/comments/commentRss/42552.htmlhttp://www.aygfsteel.com/oksonic/services/trackbacks/42552.html 速動畫教程第十九集 eXtremeComponents 的基礎(chǔ)配置


錄像下載: http://sonic.peakle.net/download/sonic019.rar

臨時下載: http://this.oksonic.cn 下載欄目,需要注冊用戶
?

開發(fā)環(huán)境:Eclipse 3.1.1? MyEclipse 4.1.1?? Tomcat 5.5

?

此教程參考文章:http://www.aygfsteel.com/lucky/archive/2006/02/26/32479.html

?

先下載發(fā)行包 http://sourceforge.net/projects/extremecomp

?

將包內(nèi)的所有 jar 文件拷貝到項目的 WEB-INF/lib 目錄中

?

dist 目錄中的 extremecomponents.tld 文件拷貝到 WEB-INF

test 目錄中的 test.jsp 文件拷貝到 webroot 目錄中

images 文件夾拷貝到 webroot 目錄中

?

需要對原文件 test.jsp 修改!

?

修改了標(biāo)簽路徑

?

然后刷新一下工程,布署工程,起動 Tomcat 打開瀏覽器,輸入 http://localhost/table/test.jsp 進(jìn)行測試

?

看一下 test.jsp 文件內(nèi)容

?

以下是創(chuàng)建一個 list 集合,list 集合中是一組? java.util.HashMap 集合

<% java.util.List presidents = new java.util.ArrayList(); %>

?

<% java.util.Map president = new java.util.HashMap(); %>

<% president.put("name", "George Washington"); %>

<% president.put("nickname", "Father of His Country"); %>

<% president.put("term", "1789-1797"); %>

<% presidents.add(president); %>

?

<% president = new java.util.HashMap(); %>

<% president.put("name", "John Adams"); %>

<% president.put("nickname", "Atlas of Independence"); %>

<% president.put("term", "1797-1801"); %>

<% presidents.add(president); %>

?

<% president = new java.util.HashMap(); %>

<% president.put("name", "Thomas Jefferson"); %>

<% president.put("nickname", "Man of the People, Sage of Monticello"); %>

<% president.put("term", "1801-09"); %>

<% presidents.add(president); %>

?

<% president = new java.util.HashMap(); %>

<% president.put("name", "James Madison"); %>

<% president.put("nickname", "Father of the Constitution"); %>

<% president.put("term", "1809-17"); %>

<% presidents.add(president); %>

?

<% president = new java.util.HashMap(); %>

<% president.put("name", "James Monroe"); %>

<% president.put("nickname", "The Last Cocked Hat, Era-of-Good-Feelings President"); %>

<% president.put("term", "1817-25"); %>

<% presidents.add(president); %>

?

<% president = new java.util.HashMap(); %>

<% president.put("name", "John Adams"); %>

<% president.put("nickname", "Old Man Eloquent"); %>

<% president.put("term", "1825-29"); %>

<% presidents.add(president); %>

?

<% request.setAttribute("pres", presidents); %>

?

以下代碼使用 eXtremeComponents 的標(biāo)簽來生成表格

?

??? <ec:table

??????? items="pres"

??????? action="${pageContext.request.contextPath}/test.jsp"

??????? imagePath="${pageContext.request.contextPath}/images/table/*.gif"

??????? title="Presidents"

??????? width="60%"

??????? rowsDisplayed="5"

??????? >

??????? <ec:row>

??????????? <ec:column property="name"/>??? ??? 顯示的列

??????????? <ec:column property="nickname"/>

??????????? <ec:column property="term"/>

??????? </ec:row>

??? </ec:table>

?

?

這集錄像的內(nèi)容很簡單,用來測試一下新的錄像制作工具!!!

?

bye!!!



oksonic 2006-04-22 23:21 發(fā)表評論
]]>
速動畫教程第十八集 SSH框架的構(gòu)建(錄像)http://www.aygfsteel.com/oksonic/archive/2006/03/29/37942.htmloksonicoksonicTue, 28 Mar 2006 16:12:00 GMThttp://www.aygfsteel.com/oksonic/archive/2006/03/29/37942.htmlhttp://www.aygfsteel.com/oksonic/comments/37942.htmlhttp://www.aygfsteel.com/oksonic/archive/2006/03/29/37942.html#Feedback37http://www.aygfsteel.com/oksonic/comments/commentRss/37942.htmlhttp://www.aygfsteel.com/oksonic/services/trackbacks/37942.html閱讀全文

oksonic 2006-03-29 00:12 發(fā)表評論
]]>
今天注冊了一個域名,以后請大家使用這個域名訪問!http://www.aygfsteel.com/oksonic/archive/2006/03/28/37712.htmloksonicoksonicMon, 27 Mar 2006 16:15:00 GMThttp://www.aygfsteel.com/oksonic/archive/2006/03/28/37712.htmlhttp://www.aygfsteel.com/oksonic/comments/37712.htmlhttp://www.aygfsteel.com/oksonic/archive/2006/03/28/37712.html#Feedback15http://www.aygfsteel.com/oksonic/comments/commentRss/37712.htmlhttp://www.aygfsteel.com/oksonic/services/trackbacks/37712.html今天注冊了一個域名,以后請大家使用這個域名訪問!

www.oksonic.com



oksonic 2006-03-28 00:15 發(fā)表評論
]]>
準(zhǔn)備制作OA系統(tǒng)(開源),求各方面的資料,希望得到大家的支持及幫助!http://www.aygfsteel.com/oksonic/archive/2006/02/08/29963.htmloksonicoksonicWed, 08 Feb 2006 11:44:00 GMThttp://www.aygfsteel.com/oksonic/archive/2006/02/08/29963.htmlhttp://www.aygfsteel.com/oksonic/comments/29963.htmlhttp://www.aygfsteel.com/oksonic/archive/2006/02/08/29963.html#Feedback63http://www.aygfsteel.com/oksonic/comments/commentRss/29963.htmlhttp://www.aygfsteel.com/oksonic/services/trackbacks/29963.html準(zhǔn)備制作OA系統(tǒng)(開源),求各方面的資料

此次制作過程完全開放(開源)包括一切:需求文檔、設(shè)計文檔、UML圖例、源代碼、開發(fā)日志等,希望得到大家的幫助!!!

這是我的博客
http://oksonic.blogjava.net
email:  oksonic@tom.com

OA群已滿!!!

上傳一些OA資料
   OA需求分析說明書
   2FBird辦公自動化系統(tǒng).doc
   J2EE OA項目開發(fā)日記.doc
   OA需求分析書.doc
   THOA辦公自動化系統(tǒng).doc
   辦公自動化系統(tǒng).doc

   點這里下載



oksonic 2006-02-08 19:44 發(fā)表評論
]]>
新年禮物:jsf + spring + hibernate 開發(fā)示例(教學(xué)錄像)http://www.aygfsteel.com/oksonic/archive/2006/01/17/28274.htmloksonicoksonicTue, 17 Jan 2006 02:15:00 GMThttp://www.aygfsteel.com/oksonic/archive/2006/01/17/28274.htmlhttp://www.aygfsteel.com/oksonic/comments/28274.htmlhttp://www.aygfsteel.com/oksonic/archive/2006/01/17/28274.html#Feedback43http://www.aygfsteel.com/oksonic/comments/commentRss/28274.htmlhttp://www.aygfsteel.com/oksonic/services/trackbacks/28274.html速動畫教程第十七集


因為文章太長,網(wǎng)頁中無法完整提交,所以詳細(xì)說明請查看下載包中的文檔。
下載地址:http://sonic.peakle.net/download/sonic017.rar

 文件大小:32,795K

 

jsf + spring + hibernate 開發(fā)示例

 

以下是用例圖,用戶可以進(jìn)行以下操作:登錄、瀏覽、注冊、修改、刪除、退出

 

 

 

創(chuàng)建 user 工程

 

添加 jsf 框架、spring 框架、hibernate 框架

    這里的JSF框架在MyEclipse中使用MyFaces1.0.9,并且在彈出是否增加j2ee包的對話框時,請選擇No,如果選擇了Yes的話會發(fā)現(xiàn)jsp頁面無法在Tomcat中顯示的問題,不過換了resin3就可以了,請不要使用Sun JSF,因為后面的集成部份必需使用MyFaces,當(dāng)然,如果有朋友會集成Sun JSF的話也不勉強,并請你教我怎么集成!

    在添加spring框架時,選中所有的可選項,具體應(yīng)該使用哪一個我也分不清,創(chuàng)建完成后需要對 web.xml 文件進(jìn)行配置,加入以下內(nèi)容:

       <servlet>

       <servlet-name>context</servlet-name>

       <servlet-class>org.springframework.web.context.ContextLoaderServlet</servlet-class>

       <load-on-startup>1</load-on-startup>

    </servlet>

 

    <context-param>

       <param-name>contextConfigLocation</param-name>

       <param-value>/WEB-INF/applicationContext.xml</param-value>

    </context-param>

 

    在添加完Hibernate記得把jdbc文件拷貝到lib目錄

 

使用三層結(jié)構(gòu)WEB MODEL DATA

 

啟動mysql并創(chuàng)建USERS

CREATE TABLE `user` (

  `id` int(11) NOT NULL auto_increment,

  `username` varchar(100) NOT NULL default '',

  `password` varchar(100) NOT NULL default '',

  PRIMARY KEY  (`id`)

)

 

新建三個包分別為com.webcom.modelcom.data

 

其中 com.web 包中包含以下包

    com.web.bocom.web.vo

 

其中 com.model 包中包含以下包

    com.model.servicecom.model.service.implcom.model.exception

 

其中 com.data 包中包含以下幾個包

    com.data.daocom.data.dao.impl

 

com.web.bo 用來存放映射后的BO業(yè)務(wù)層的對像

包 com.web.vo ,用來存放映射后的VO(業(yè)務(wù))層的對像

 

包 com.model.service , 用來存放 service(服務(wù))層的對像的接口

包 com.model.service.impl , 用來存放 service(服務(wù))層的對像接口的實例

包 com.model.exception ,用來存放自定義的異常處理類

 

包 com.data.dao ,用來存放DAO(數(shù)據(jù)訪問)層的對像的接口

包 com.data.dao.impl ,用來存放DAO(數(shù)據(jù)訪問)層的對像接口的實例

 

配置完成 hibernate 后對表進(jìn)行映射操作,將映射文件保存到com.web.bo包內(nèi)

 

創(chuàng)建一個異常處理類 UserException.java,內(nèi)容如下:

public class UserException extends Exception {

    public UserException(){

        super();

    }

    public UserException(String msg){

        super(msg);

    }

    public UserException(String msg, Throwable cause) {

        super(msg, cause);

    }

}



oksonic 2006-01-17 10:15 發(fā)表評論
]]>
主站蜘蛛池模板: 山丹县| 阳曲县| 佛冈县| 交口县| 海南省| 五原县| 栖霞市| 三河市| 蓝田县| 商水县| 广德县| 蒙山县| 东丽区| 崇明县| 新余市| 建瓯市| 崇州市| 永靖县| 兰坪| 鹰潭市| 大冶市| 监利县| 成武县| 永春县| 普兰店市| 招远市| 呼图壁县| 奉化市| 明星| 青神县| 缙云县| 蓬莱市| 敦化市| 行唐县| 叙永县| 和平区| 临桂县| 石嘴山市| 福建省| 威远县| 临洮县|