島主

          分享技術,分享快樂。 共同進步。。。。。。。。。。

            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            30 隨筆 :: 72 文章 :: 5 評論 :: 0 Trackbacks

          2010年6月20日 #

          上傳圖片問題
          2007-7-28 22:41:45 org.apache.catalina.core.StandardWrapperValve invoke
          嚴重: ServletPromulgateServlet的Servlet.service()發生意外(exception)
          java.lang.IllegalArgumentException: Files' name is invalid or does not exist (1205).

          文章來源:http://www.itshehui.com/forum.php?mod=viewthread&tid=983
          posted @ 2010-07-05 09:27 daozhu713 閱讀(175) | 評論 (0)編輯 收藏

          在使用JSP的過程中,最使人頭疼的一個問題就是中文亂碼問題,以下是我在軟件開發中遇到的亂碼問題以及解決方法。
          1、JSP頁面亂碼
            這種亂碼的原因是應為沒有在頁面里指定使用的字符集編碼,解決方法:只要在頁面開始地方用下面代碼指定字符集編碼即可,
          2、數據庫 ...
          文章來源:http://www.itshehui.com/forum.php?mod=viewthread&tid=972
          posted @ 2010-07-05 09:27 daozhu713 閱讀(157) | 評論 (0)編輯 收藏

          在web.xml里配置異常跳轉頁面


          java.sql.SQLException
          /error/sqlError.jsp


          404
          /error
          文章來源:http://www.itshehui.com/forum.php?mod=viewthread&tid=971
          posted @ 2010-07-05 09:27 daozhu713 閱讀(403) | 評論 (0)編輯 收藏

          2010年 Java 異常大百科不斷整理更新。。。。

          先介紹JAVA的異常

          算術異常類:ArithmeticExecption
          空指針異常類:NullPointerException
          類型強制轉換異常:ClassCastException
          數組負下標異常:NegativeArrayException
          數組下標越界異常:Arr ...
          文章來源:http://www.itshehui.com/forum.php?mod=viewthread&tid=964
          posted @ 2010-07-05 09:27 daozhu713 閱讀(136) | 評論 (0)編輯 收藏

          try{
          }catch(Exception e){
          處理語句
          }finally{
          }

          異常處理\
          文章來源:http://www.itshehui.com/forum.php?mod=viewthread&tid=963
          posted @ 2010-07-05 09:27 daozhu713 閱讀(162) | 評論 (0)編輯 收藏

          一個用戶的請求是通ActionServlet來處理和轉發的。那么,ActionServlet如何決定把用戶請求轉發給哪個Action對象呢?這就需要一些描述用戶請求路徑和Action衍射關系的配置信息了。在Struts中,這些配置映射信息都存儲在特定的XML文件Struts-config.xml中。在該配置文件 ...
          文章來源:http://www.itshehui.com/forum.php?mod=viewthread&tid=955
          posted @ 2010-07-05 09:27 daozhu713 閱讀(131) | 評論 (0)編輯 收藏

          Hibernate理論基礎
          1. 什么是hibernate?
          2. hibernate的知識內容
          3. 什么是對象持久化?對象持久化有什么用?(解決的問題)
          4. 如何對象持久化?
          5. 如何用數據庫的方法做對象持久化?
          6. ORM(對象關系映射)是什么?有什么作用?
          7. ORM從對象到表所要考慮的問題 ...
          文章來源:http://www.itshehui.com/forum.php?mod=viewthread&tid=952
          posted @ 2010-07-05 09:27 daozhu713 閱讀(130) | 評論 (0)編輯 收藏

          Spring是一個開源框架,它由Rod Johnson創建。它是為了解決企業應用開發的復雜性而創建的。Spring使用基本的JavaBean來完成以前只可能由EJB完成的事情。然而,Spring的用途不僅限于服務器端的開發。從簡單性、可測試性和松耦合的角度而言,任何Java應用都可以從Spring中 ...
          文章來源:http://www.itshehui.com/forum.php?mod=viewthread&tid=951
          posted @ 2010-07-05 09:27 daozhu713 閱讀(157) | 評論 (0)編輯 收藏

          下面的代碼示例了html:multibox標簽的典型用法:







          html:multibox標簽生成多個checkbox。當您要使用大量的checkbox時使用這個標簽非常方便,可以使您避免在ActionForm中聲明大量的boolean類型的變量,帶之以一個數組就行了。
          注意:為了正 ...
          文章來源:http://www.itshehui.com/forum.php?mod=viewthread&tid=945
          posted @ 2010-07-05 09:27 daozhu713 閱讀(139) | 評論 (0)編輯 收藏

          Nutch 是一個剛剛誕生開放源代碼(open-source)的web搜索引擎.
          盡管Web搜索是漫游Internet的基本要求, 但是現有web搜索引擎的數目卻在下降. 并且這很有可能進一步演變成為一個公司壟斷了幾乎所有的web搜索為其謀取商業利益.這顯然不利于廣大Internet用戶.
          Nutch為我們提 ...
          文章來源:http://www.itshehui.com/forum.php?mod=viewthread&tid=944
          posted @ 2010-07-05 09:27 daozhu713 閱讀(143) | 評論 (0)編輯 收藏

          java.util.logging.Logger特性:
          1、具有層次結構,使用圓點分隔的層次名稱空間來命名Logger;
          2、請求級別和日志級別;(請求級別是調用Logger對象時指定的級別Level.INFO,日志級別是系統包路徑輸出日期的級別"com.netstar=info");
          3、Handler指定系統輸出日期的目 ...
          文章來源:http://www.itshehui.com/forum.php?mod=viewthread&tid=934
          posted @ 2010-07-05 09:27 daozhu713 閱讀(109) | 評論 (0)編輯 收藏

          DataSource d=super.getDataSource();
          Connection conn=d.getConnection();
          CallableStatement st=conn.prepareCall("{ ? = call fun_income_charge(?,?,?,?,?,?) }");
          st.registerOutParameter(1, Ty
          文章來源:http://www.itshehui.com/forum.php?mod=viewthread&tid=914
          posted @ 2010-07-05 09:27 daozhu713 閱讀(1004) | 評論 (0)編輯 收藏

          request.getQueryString()
          request.getRequestURL()

          非常簡單
          文章來源:http://www.itshehui.com/forum.php?mod=viewthread&tid=912
          posted @ 2010-07-05 09:27 daozhu713 閱讀(276) | 評論 (1)編輯 收藏

          超全 SpringSecurity 配置文檔



          QQ群 1群:52673349 2群:41420961
          文章來源:http://www.itshehui.com/forum.php?mod=viewthread&tid=910
          posted @ 2010-07-05 09:27 daozhu713 閱讀(133) | 評論 (0)編輯 收藏

          對Acegi介紹的還可以,大家可以了解下 。

          一個安全框架。
          文章來源:http://www.itshehui.com/forum.php?mod=viewthread&tid=909
          posted @ 2010-07-05 09:27 daozhu713 閱讀(120) | 評論 (0)編輯 收藏

          int n=0;
          ByteArrayOutputStream bos = new ByteArrayOutputStream();
          while ((n=instr.read())!=-1)
          bos.write(n);
          FileOutputStream fos = new FileOutputStream(URL+"webhtml/&quo
          文章來源:http://www.itshehui.com/forum.php?mod=viewthread&tid=857
          posted @ 2010-06-20 09:42 daozhu713 閱讀(585) | 評論 (0)編輯 收藏

          public static boolean delFile(String path){
          //String s = "D:\\txt\\inBuffer\\"+ fileInfo[0] +"\\" + fileID;//文件的絕對路徑
          File file = new File(path);
          boolean d=false;
          if(
          文章來源:http://www.itshehui.com/forum.php?mod=viewthread&tid=856
          posted @ 2010-06-20 09:42 daozhu713 閱讀(126) | 評論 (0)編輯 收藏

          //創建文件夾
          public static boolean CreateFile(String destFileName) {
          File file = new File(destFileName);
          if (file.exists()) {
          System.out.println("創建單個文件" + destFileName + "失敗,目標文件已存在!"
          文章來源:http://www.itshehui.com/forum.php?mod=viewthread&tid=855
          posted @ 2010-06-20 09:42 daozhu713 閱讀(138) | 評論 (0)編輯 收藏

          JDK1.6官方下載_JDK6官方下載地址:

          JDK6 API CHM中文參考下載:
          JDK6API中文參考070114.rar :
          Java SE 6 API 中文版 CHM 下載:
          Java SE 5 API 中文版 CHM 下載:
          JDK6 API 中文版下載:
          文章來源:http://www.itshehui.com/forum.php?mod=viewthread&tid=853
          posted @ 2010-06-20 09:42 daozhu713 閱讀(149) | 評論 (0)編輯 收藏

          public void zip() throws Exception {
          File f = new File("test.xml");
          FileInputStream fis = new FileInputStream(f);
          BufferedInputStream bis = new BufferedInputStream(fis);
          byte[] buf = new byte[1024];
          int le
          文章來源:http://www.itshehui.com/forum.php?mod=viewthread&tid=842
          posted @ 2010-06-20 09:42 daozhu713 閱讀(120) | 評論 (0)編輯 收藏

          /**
          * 取得系統當前時間后n個月的相對應的一天
          *
          * @param n int
          * @return String yyyy-mm-dd
          */
          public String getNMonthAfterCurrentDay(int n) {
          Calendar c = Calendar.getInstance();

          文章來源:http://www.itshehui.com/forum.php?mod=viewthread&tid=836
          posted @ 2010-06-20 09:42 daozhu713 閱讀(125) | 評論 (0)編輯 收藏

          AffixFile af = new AffixFile();
          File file = new File(dir, name);
          try {
          byte[] buffer = new byte[(int) file.length()];
          FileInputStream inputStream = new FileInputStream(file);

          文章來源:http://www.itshehui.com/forum.php?mod=viewthread&tid=835
          posted @ 2010-06-20 09:42 daozhu713 閱讀(125) | 評論 (0)編輯 收藏

          eclipse 使用說明 PDF
          文章來源:http://www.itshehui.com/forum.php?mod=viewthread&tid=828
          posted @ 2010-06-20 09:42 daozhu713 閱讀(158) | 評論 (0)編輯 收藏

          //各種數字類型轉換成字符串型:
          String s = String.valueOf( value);// 其中 value 為任意一種數字類型。

          //字符串型轉換成各種數字類型:
          String s = "169";
          byte b = Byte.parseByte( s );
          short t = Short.parseShort( s );
          int i
          文章來源:http://www.itshehui.com/forum.php?mod=viewthread&tid=827
          posted @ 2010-06-20 09:42 daozhu713 閱讀(118) | 評論 (0)編輯 收藏

          一年前我開始自學java 然后就加了好多的java方面QQ群 一個QQ群的群主 然后給我們這些沒基礎的菜鳥開始講java的基礎知識·· 講到Static時給我們出了個題 讓我們用java語言描述出來 具體題目是什么用的我忘了 但是內容好像時一群人一起吃一大盆子 面條 然我這就是我當 ...
          文章來源:http://www.itshehui.com/forum.php?mod=viewthread&tid=816
          posted @ 2010-06-20 09:42 daozhu713 閱讀(120) | 評論 (0)編輯 收藏

          Java程序員的推薦閱讀書籍之一《解析極限編程 擁抱變化》
          1.《解析極限編程 擁抱變化》
          這是Kent Beck名著的第二版,中英文對照。沒什么好說的,必讀書籍。

          2。《UML精粹》

          UML其實和軟件開發過程沒有什么必然聯系,卻是軟件團隊協作溝通,撰寫軟件文檔需要的 ...
          文章來源:http://www.itshehui.com/forum.php?mod=viewthread&tid=801
          posted @ 2010-06-20 09:42 daozhu713 閱讀(98) | 評論 (0)編輯 收藏

          一年前我在百度上看到的這個文章 作者講述了自己自學的經歷···· 我也是在一年看了這篇文章開始自學 希望對大家有益·······
          文章如下::::

          我認為j2ee一定要循序漸進,我自己就是這樣,從一個一般高校計算機系畢業,
          然后滿懷夢想和激情去找工作,我k ...
          文章來源:http://www.itshehui.com/forum.php?mod=viewthread&tid=799
          posted @ 2010-06-20 09:42 daozhu713 閱讀(117) | 評論 (0)編輯 收藏

          一.程序基礎1、說一說Servlet的生命周期?2、java SERVLET API中forward() 與redirect()的區別?3、寫一段Jdbc連Oracle的程序,并實現數據查詢.4、JAVA中的反射給編程帶來哪些好處?5、AJAX與傳統WEB應用有什么不同?6、介紹一下XMLHttpRequest對象7、在項目研發中,你感 ...
          文章來源:http://www.itshehui.com/forum.php?mod=viewthread&tid=787
          posted @ 2010-06-20 09:42 daozhu713 閱讀(126) | 評論 (0)編輯 收藏

          圖像壓縮工具類

          **** 本內容被作者隱藏 ****
          文章來源:http://www.itshehui.com/forum.php?mod=viewthread&tid=872
          posted @ 2010-06-20 09:41 daozhu713 閱讀(251) | 評論 (0)編輯 收藏

          分享JAVA多語言插件非常好用的工具
          文章來源:http://www.itshehui.com/forum.php?mod=viewthread&tid=871
          posted @ 2010-06-20 09:41 daozhu713 閱讀(142) | 評論 (0)編輯 收藏

          主站蜘蛛池模板: 南和县| 炉霍县| 高邮市| 昌宁县| 会理县| 怀远县| 澄江县| 开封市| 大港区| 双城市| 梅州市| 阿勒泰市| 滁州市| 济宁市| 泽普县| 克拉玛依市| 青浦区| 乌恰县| 盈江县| 中山市| 荣昌县| 龙川县| 太湖县| 高碑店市| 安庆市| 印江| 壤塘县| 敦化市| 同德县| 海丰县| 承德县| 大渡口区| 哈尔滨市| 天气| 江西省| 清水河县| 邹平县| 萨迦县| 根河市| 柳江县| 治多县|