I'm happy to live!

          Develop with pleasure!

            BlogJava :: 首頁(yè) :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
            39 隨筆 :: 2 文章 :: 31 評(píng)論 :: 0 Trackbacks

          2005年11月22日 #

               chrome,firefox下面運(yùn)行都很正常,唯獨(dú)在safari下會(huì)爆SyntaxError: DOM Exception 12錯(cuò)誤:
           [Error] Error: SyntaxError: DOM Exception 12
          setRequestHeader@[native code]
          http://localhost:8989/app/js/base.js:40967:27
          http://localhost:8989/app/js/base.js:19014:33
          forEach@http://localhost:8989/app/js/base.js:9537:24
          http://localhost:8989/app/js/base.js:19012:14
          sendReq@http://localhost:8989/app/js/base.js:18873:21
          serverRequest@http://localhost:8989/app/js/base.js:18589:23
          processQueue@http://localhost:8989/app/js/base.js:22454:29
          http://localhost:8989/app/js/base.js:22470:39
          $eval@http://localhost:8989/app/js/base.js:23672:28
          $digest@http://localhost:8989/app/js/base.js:23488:36
          $apply@http://localhost:8989/app/js/base.js:23777:31
          bootstrapApply@http://localhost:8989/app/js/base.js:10661:21
          invoke@http://localhost:8989/app/js/base.js:13409:22
          doBootstrap@http://localhost:8989/app/js/base.js:10659:20
          bootstrap@http://localhost:8989/app/js/base.js:10679:23
          angularInit@http://localhost:8989/app/js/base.js:10573:14
          http://localhost:8989/app/js/base.js:35510:16
          fire@http://localhost:8989/app/js/base.js:3094:35
          fireWith@http://localhost:8989/app/js/base.js:3206:11
          ready@http://localhost:8989/app/js/base.js:3412:24
          completed@http://localhost:8989/app/js/base.js:3428:14
           


          這是個(gè)什么error?沒(méi)見(jiàn)過(guò)baidu一下有了:

          DOMException是W3C DOM核心對(duì)象。
          DOMException接口表示一個(gè)處理的錯(cuò)誤,當(dāng)一個(gè)操作不可能執(zhí)行的時(shí)候,會(huì)拋出一個(gè)異常。
          例如試圖創(chuàng)建一個(gè)無(wú)效的DOM, 或通過(guò)一個(gè)不存在的節(jié)點(diǎn)作為參數(shù)節(jié)點(diǎn)操作方法。

          SYNTAX_ERR code 12 --> 無(wú)效或非法的字符串被指定。

          具休介紹可以到些鏈接查看: http://www.zhangxinxu.com/wordpress/2012/05/w3c-dom-domexception-object/

          先從error stack中找到出錯(cuò)的地方,在angular-file-upload-all.js中的以下位置:
           1 var key, i;
           2 function patchXHR(fnName, newFn) {
           3     window.XMLHttpRequest.prototype[fnName] = newFn(window.XMLHttpRequest.prototype[fnName]);
           4 }
           5 
           6 if (window.XMLHttpRequest && !window.XMLHttpRequest.__isFileAPIShim) {
           7     patchXHR('setRequestHeader', function (orig) {
           8         return function (header, value) {
           9             if (header === '__setXHR_') {
          10                 var val = value(this);
          11                 // fix for angular < 1.2.0
          12                 if (val instanceof Function) {
          13                     val(this);
          14                 }
          15             } else {
          16                 orig.apply(this, arguments);
          17             }
          18         }
          19     });
          20 }

          出錯(cuò)的位置在第16行,把header打出來(lái)看了一下,Authorization的值是這樣的'Token '的,后面多了一個(gè)空格,果斷刪除掉空格再試,不爆錯(cuò)了,原來(lái)是空格惹的禍,為什么會(huì)出錯(cuò)呢,想去看看這個(gè)orig的內(nèi)容是什么,可碰到[native code],這個(gè)估計(jì)是c++的code,這個(gè)要如何看得到內(nèi)容呢,問(wèn)題是解決了,但還未探清問(wèn)題的源頭,又是c代碼,請(qǐng)高人指點(diǎn)。 
          posted @ 2015-12-17 17:04 Norsor 閱讀(1972) | 評(píng)論 (0)編輯 收藏

          <input name="fieldValue" ng-pattern="{{validateRegexp}}" />
          $scope.validateRegexp = "/\\d/";
          以上代碼,在頁(yè)面上可以動(dòng)態(tài)改變validateRegexp的值,頁(yè)面上的ng-pattern的內(nèi)容也確實(shí)變了,但卻沒(méi)有起作用,有沒(méi)有大俠能解釋一下?
          posted @ 2015-10-21 13:10 Norsor 閱讀(2930) | 評(píng)論 (0)編輯 收藏

          1. mysql的數(shù)據(jù)庫(kù)文件存放在哪個(gè)位置呢,搞了半天可以在workbanch中執(zhí)行 show variables like '%datadir%'  命令,結(jié)果就出來(lái)了
          posted @ 2015-07-01 10:50 Norsor 閱讀(3933) | 評(píng)論 (0)編輯 收藏

              經(jīng)過(guò)一年多拶轉(zhuǎn)我又即將回到frontend的開(kāi)發(fā)中來(lái),我比以往有了更多的經(jīng)驗(yàn),耐心,專(zhuān)注,比以往更加能規(guī)劃自已,現(xiàn)在的前端和幾年前又不一樣了,又多了許多的新東西,我能應(yīng)付過(guò)來(lái)么,我相信答案是肯定的,我還能做得更好,加油吧!
          posted @ 2015-04-29 13:42 Norsor 閱讀(4643) | 評(píng)論 (0)編輯 收藏

          想用iframe引用一個(gè)網(wǎng)站,但發(fā)現(xiàn)該網(wǎng)站做了iframe引用禁止,有沒(méi)有辦法能夠讓iframe引用它啊?請(qǐng)教各位牛人了.

          posted @ 2012-11-15 17:43 Norsor 閱讀(1509) | 評(píng)論 (0)編輯 收藏

               摘要: DIV在FF下的拖動(dòng)  閱讀全文
          posted @ 2011-10-30 09:37 Norsor 閱讀(1934) | 評(píng)論 (3)編輯 收藏

           

          DateFormat df = DateFormat.getDateTimeInstance(DateFormat.MEDIUM,
                          DateFormat.SHORT,Locale.CANADA);
                  TimeZone tz 
          = TimeZone.getTimeZone("America/Los_Angeles");

                  df.setTimeZone(tz);
                  String time 
          = df.format(new Date());
                  System.out.println(time);
          如上代碼,我構(gòu)造DateFormat的格式,然后會(huì)傳入用戶(hù)所選擇的Locale,可能是CANADA,US,CHINA,FRANCH....不同的Locale產(chǎn)生的時(shí)間格式不同,比如:
          20-Jan-2011 5:35 AM   (Locale.CANADA)
          Jan 20, 2011 5:38 AM(Locale.US)
          Jan 20, 2011 5:39 AM(Locale.ENGLISH)
          20 janv. 2011 05:39(Locale.FRANCH)
          20.01.2011 05:40(Locale.GERMAN)
          2011-1-20 上午5:42(Locale.CHINA)
          2011. 1. 20 ?? 5:43(Locale.KOREA)
          ...等等..

          現(xiàn)在這些格式中有的是24小時(shí)制顯示的,有的是12小時(shí)制顯示的,我現(xiàn)在想判斷每一種Locale是什么時(shí)間制,是24還是12小時(shí),然后做相應(yīng)的處理,怎樣判斷呢?現(xiàn)在還沒(méi)有好的辦法,請(qǐng)教各位牛人們!
          現(xiàn)在
          posted @ 2011-01-20 21:46 Norsor 閱讀(1995) | 評(píng)論 (0)編輯 收藏

              在我的項(xiàng)目中,用戶(hù)會(huì)選擇自已的時(shí)區(qū),所以顯示的時(shí)間都是根據(jù)用戶(hù)選擇的時(shí)區(qū)來(lái)顯示時(shí)間的,而時(shí)間我存入數(shù)據(jù)庫(kù)時(shí)我打算是轉(zhuǎn)成格林威治時(shí)間,然后從庫(kù)里取出時(shí)間后又根據(jù)用戶(hù)的選擇來(lái)轉(zhuǎn)成對(duì)應(yīng)時(shí)區(qū)的時(shí)間
          但現(xiàn)在卻碰到一些問(wèn)題,如何將對(duì)應(yīng)時(shí)區(qū)的時(shí)間轉(zhuǎn)成格林威治時(shí)間呢?

          以下是我的部分代碼:
          DateFormat df = DateFormat.getDateTimeInstance(DateFormat.LONG,
                          DateFormat.LONG);
                  Calendar cal 
          = Calendar.getInstance();

                  TimeZone tz 
          = TimeZone.getTimeZone("America/Los_Angeles");

                  df.setTimeZone(tz);
                  String time 
          = df.format(new Date());
                  System.out.println(time);
                  Date date 
          = df.parse(time, new ParsePosition(0));
                  System.out.println(date);
          為何df.parse()后返回的date又成了當(dāng)前系統(tǒng)的時(shí)間了啊,我如何把當(dāng)前用戶(hù)時(shí)區(qū)的時(shí)間轉(zhuǎn)換成格林威治時(shí)間呢,謝謝牛人們?
          posted @ 2011-01-05 07:31 Norsor 閱讀(1698) | 評(píng)論 (3)編輯 收藏

          1.在介紹你以前的項(xiàng)目時(shí),請(qǐng)重點(diǎn)跟我介紹你在里面做了什么,怎么做,幫原來(lái)公司解決了什么,自己收獲了什么,說(shuō)到底,是你要告訴我你的亮點(diǎn)在哪,別慢舞天際的談。最郁悶就是碰到有一個(gè)在介紹項(xiàng)目時(shí)讀出一段段的流水賬,做了**模塊,**模塊,**模塊...最后我只明白他告訴我他懂得CRUD,神馬加浮云。 2.因?yàn)槲覀冊(cè)谛袠I(yè)中算是大型的門(mén)戶(hù)網(wǎng),對(duì)并發(fā)要求較高,希望你對(duì)性能、并發(fā)、分布式等專(zhuān)業(yè)領(lǐng)域有一些了解或者研究,哪怕有一些心得也行。 3.在開(kāi)發(fā)方面對(duì)struts/spring/hibernate/ibatis等等主流開(kāi)源框架有一定了解,不要求你一定會(huì)哪個(gè),但你選擇了哪個(gè)框架,就希望你對(duì)這個(gè)框架的原理,背后的思想有一定的了解,最好還有業(yè)界的評(píng)測(cè)、認(rèn)識(shí),不要停留在怎么調(diào)用api。 4.“我只負(fù)責(zé)寫(xiě)代碼,系統(tǒng)部署運(yùn)維不關(guān)我事”,雖然有些公司是這樣的,但這句話我還是不大喜歡,自己寫(xiě)的東西運(yùn)行的狀況如何最起碼要有所了解,不要求你掌握著系統(tǒng)的運(yùn)維,但起碼要有所參與,對(duì)系統(tǒng)環(huán)境和部署要比較熟悉,不要只停留在開(kāi)發(fā)寫(xiě)代碼。 5.對(duì)主流的服務(wù)應(yīng)用如nginx/apache/resin/tomcat等等,不要求很懂得調(diào)優(yōu),但起碼要會(huì)玩。 6.簡(jiǎn)歷不要跟自己的實(shí)際情況差太遠(yuǎn),如果你寫(xiě)的東西在面試被問(wèn)到卻說(shuō)不出個(gè)所以然,更會(huì)減低別人對(duì)你的印象。
          posted @ 2010-12-29 22:47 Norsor 閱讀(465) | 評(píng)論 (1)編輯 收藏

          今天學(xué)習(xí)了java ResourceBundle類(lèi)的內(nèi)容,但一直還有一個(gè)問(wèn)題沒(méi)有解決,就是它讀取資源文件路徑的問(wèn)題.

          以下是我的代碼:
           1package test.resource;
           2
           3import java.util.Locale;
           4import java.util.ResourceBundle;
           5
           6public class Test {
           7    public static void main(String args[]) {
           8        Test test = new Test();
           9        ResourceBundle messages = test.loadResource();
          10        System.out.println(messages.getObject("name"));
          11    }

          12
          13    private ResourceBundle loadResource() {
          14        Locale local = Locale.getDefault();
          15        ResourceBundle messages = ResourceBundle.getBundle("messages", local,
          16                this.getClass().getClassLoader());
          17        return messages;
          18    }

          19}
           我的兩個(gè)資源文件messages_en_US.properties,messages_zh_CN.properties都在當(dāng)前類(lèi)路徑下面,可是這樣的話運(yùn)行程序它就找不到資源文件,會(huì)報(bào)錯(cuò):Can't find bundle for base name messages, locale zh_CN
          我必需把兩個(gè)資源文件copy到classes根目錄下才行,我想資源文件是可以放在當(dāng)前類(lèi)路徑下面的,可是不太清楚如何讀取出來(lái),ResourceBundle.getBundle("messages", local,
              this.getClass().getClassLoader());方法好像只能讀根路徑下的資源,請(qǐng)教各位了!
          posted @ 2010-12-26 18:37 Norsor 閱讀(12356) | 評(píng)論 (2)編輯 收藏

          MySQL中的定時(shí)執(zhí)行

           

            查看event是否開(kāi)啟

            show variables like '%sche%';

            將事件計(jì)劃開(kāi)戶(hù)

            set global event_scheduler =1;

           

            創(chuàng)建存儲(chǔ)過(guò)程test

            CREATE PROCEDURE test ()
            BEGIN
            update examinfo SET endtime = now() WHERE id = 14;
            END;

           

            創(chuàng)建event e_test

            create event if not exists e_test
            on schedule every 30 second
            on completion preserve
            do call test();

           

            每隔30秒將執(zhí)行存儲(chǔ)過(guò)程test,將當(dāng)前時(shí)間更新到examinfo表中id=14的記錄的endtime字段中去.

           

            關(guān)閉事件任務(wù)

            alter event e_test ON
            COMPLETION PRESERVE DISABLE;

           

            開(kāi)戶(hù)事件任務(wù)
            alter event e_test ON
            COMPLETION PRESERVE ENABLE;

           

            以上測(cè)試均成功,測(cè)試環(huán)境為mysql 5.4.2-beta-community mysql community server(GPL)

          posted @ 2009-11-20 00:25 Norsor 閱讀(1382) | 評(píng)論 (2)編輯 收藏

          最近接觸了jquery,感覺(jué)很不錯(cuò),以后不用寫(xiě)這么繁雜的js代碼了,不錯(cuò),現(xiàn)在手上又接了個(gè)新項(xiàng)目,正好在新項(xiàng)目上邊學(xué)邊用了,此文繼續(xù)更新中...

          posted @ 2009-11-09 23:43 Norsor 閱讀(234) | 評(píng)論 (0)編輯 收藏

              
              Ajax也用了很長(zhǎng)時(shí)間了,今天只是想整理一下我心中的Ajax.
              簡(jiǎn)單的說(shuō)Ajax就是實(shí)現(xiàn)了異步向服務(wù)器請(qǐng)求數(shù)據(jù),讓用戶(hù)有更好的體驗(yàn).
              XMLHttpRequest其實(shí)也就只有兩種方式返回請(qǐng)求后的數(shù)據(jù):

              1.responseText方式,它是返回文本字串的方式,其實(shí)采用這種方式,通常是在服務(wù)端在對(duì)請(qǐng)求響應(yīng)處理后,生成好要在瀏覽器上展示的html代碼后,再直接輸出到客戶(hù)端,更新需要更新的客戶(hù)端頁(yè)面內(nèi)容.這種方式的好處是能在服務(wù)端生成好客戶(hù)端代碼,可減輕客戶(hù)端的負(fù)擔(dān),客戶(hù)端只需將服務(wù)端生成的代碼innerHTML到對(duì)應(yīng)的區(qū)域就行了... ...  但它的缺點(diǎn)在于,輸出到客戶(hù)端的是文本數(shù)據(jù),所以無(wú)法對(duì)得到的數(shù)據(jù)在客戶(hù)端進(jìn)行處理,所以就難以行成根據(jù)取回的數(shù)據(jù)的差異對(duì)頁(yè)面進(jìn)行必要的邏輯處理.

              2.responseXML方式,它是返回XML格式的文本,它是在服務(wù)端在對(duì)請(qǐng)求響應(yīng)處理后,將數(shù)據(jù)以XML格式的文本返回到客戶(hù)瀏覽器上,然后再由客戶(hù)端來(lái)完成方式1中由服務(wù)端來(lái)完成的生成頁(yè)面展示的內(nèi)容. 客戶(hù)端將解析返回的XML數(shù)據(jù),然后再進(jìn)行頁(yè)面的展示,由于是XML數(shù)據(jù)所以可以進(jìn)行解析便可以根據(jù)解析出的數(shù)據(jù)對(duì)如何展示頁(yè)面進(jìn)行邏輯處理,在這一點(diǎn)上是比responseText要靈活的.但付出的是加大了客戶(hù)端的負(fù)擔(dān).

              其實(shí)現(xiàn)在我正在學(xué)習(xí)JSON,如果在responseText方式中返回JSON方式的數(shù)據(jù)的話,是完全可以讓responseText和responseXML一樣的靈活的,因?yàn)镴SON也是一種數(shù)據(jù)結(jié)構(gòu),可以將要返回的數(shù)據(jù)組織在其中,到客戶(hù)端再進(jìn)行解析,解析也相當(dāng)簡(jiǎn)單,只需evel執(zhí)行即可...  但前提是輸出到客戶(hù)端的JSON數(shù)據(jù)結(jié)構(gòu)是正確的,不然js就會(huì)bomb!

              以上是僅是我個(gè)人的看法,有不對(duì)之處請(qǐng)大家多指點(diǎn)!
          posted @ 2009-07-26 22:49 Norsor 閱讀(2181) | 評(píng)論 (5)編輯 收藏




          <IMG onclick="go()" ID="sphere" SRC="tt.jpg" STYLE="position:absolute;filter:fliph;clip=rect(100 170 140 70)"/>
          這樣以后,無(wú)法響應(yīng)onclick事件,試了其它事件,好像都不能響應(yīng)了,
          如果改成:
          <IMG onclick="go()" ID="sphere" SRC="tt.jpg" STYLE="position:absolute;clip=rect(100 170 140 70)"/>

          <IMG onclick="go()" ID="sphere" SRC="tt.jpg" STYLE="position:absolute;filter:fliph"/>
          就都能響應(yīng)事件
          請(qǐng)問(wèn)這是為什么啊,就想知道為什么?
          posted @ 2009-07-16 09:40 Norsor 閱讀(759) | 評(píng)論 (0)編輯 收藏

          以下是近期項(xiàng)目碰到的ajax的一些問(wèn)題列舉出來(lái)供大家分享,希望有所幫助,還在不斷增加中:

          1.ajax,action中response返回的xml文檔格式錯(cuò)誤時(shí),eclipse debug進(jìn)入不到action中.

          2.ajax緩存問(wèn)題,需要加入xmlHttp.setRequestHeader("If-Modified-Since","0");便可解決.

          3.如果不是ajax提交,而設(shè)置了PrintWriter out = response.getWriter();則jsp會(huì)產(chǎn)生中文亂碼.

          4.ajax返回xml亂碼的原因
          response.setContentType("text/xml;charset=GBK");
          PrintWriter out = response.getWriter();
          這樣才起作用,如果這樣:
          PrintWriter out = response.getWriter();
          response.setContentType("text/xml;charset=GBK");
          那么response.setContentType("text/xml;charset=GBK");就不起作用了所以返回是亂碼,這個(gè)問(wèn)題搞了很久,代碼還得仔細(xì)看啊.

          5.ajax表單提交
          xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
          由于傳過(guò)去的是utf-8編碼的,所以在action 或servlet中接受時(shí)要進(jìn)行相應(yīng)轉(zhuǎn)碼.

           

          posted @ 2009-05-09 15:26 Norsor 閱讀(1622) | 評(píng)論 (1)編輯 收藏

          今天做個(gè)spring和struts的集成Demo,我用的是myeclipse6.5,導(dǎo)入spring框架和struts框架都相當(dāng)方便,一切就序后,開(kāi)tomcat,跑吧,相當(dāng)?shù)牟凰谝粋€(gè)鏈接就爆: servlet action is not available,什么意思啊,難道我的配置文件沒(méi)配對(duì)?檢查了沒(méi)天也沒(méi)發(fā)現(xiàn)什么問(wèn)題.
          以下是我的struts  的struts-config.xml:
          <struts-config>
              
          <data-sources />
              
          <form-beans />
              
          <global-exceptions />
              
          <global-forwards />

              
          <action-mappings>
                  
          <action path="/hello" type="com.laxxx.struts.action.Hello">
                      
          <forward name="hello" path="/hello.jsp" />
                  
          </action>
              
          </action-mappings>

              
          <controller
                  
          processorClass="org.springframework.web.struts.DelegatingRequestProcessor" />


              
          <message-resources
                  
          parameter="com.laxxx.struts.ApplicationResources" />


              
          <plug-in
                  
          className="org.springframework.web.struts.ContextLoaderPlugIn">

                  
              
          <set-property property="contextConfigLocation"
                      value
          ="/WEB-INF/applicationContext.xml" />
              
          </plug-in>
          </struts-config>

          以下是spring的applicationContext.xml:
          <beans xmlns="http://www.springframework.org/schema/beans"
              xmlns:xsi
          ="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation
          ="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">

              
          <bean name="/hello" class="com.laxxx.struts.action.Hello">

              
          </bean>
          </beans>

          看了又看找了又找,還是沒(méi)看出問(wèn)題,把struts-config中關(guān)于spring兩段配置去掉后,單跑struts是沒(méi)問(wèn)題的,看來(lái)很有可能myeclipse沒(méi)把包導(dǎo)全啊,可能沒(méi)找到,發(fā)現(xiàn)好多人都中過(guò)此招,有些包沒(méi)找到spring的代理請(qǐng)求處理類(lèi)或者是沒(méi)找到初始化spring上下文的插件類(lèi),這兩個(gè)類(lèi)都在spring.jar中,于是把這個(gè)jar包放入lib目錄中去,重啟tomcat... ... 再點(diǎn),ok,終于到應(yīng)該去的地方了.
          posted @ 2008-12-04 17:19 Norsor 閱讀(564) | 評(píng)論 (0)編輯 收藏

          今天畫(huà)線,居然笨到用ps做圖來(lái)做td的背景在html中當(dāng)成線條,同事一提醒才知道html中還有個(gè)fieldset-->legend標(biāo)簽,就是用來(lái)顯示線框的,唉,居然從來(lái)沒(méi)用過(guò),不過(guò)學(xué)到了哈.
          <fieldset>
            
          <legend>
              Infomation
            
          </legend>
            height:180cm
          </fieldset>

          還有個(gè)標(biāo)記<pre>可以保持文本原本的格式:
          <pre>
          for(int i = 0;i 
          < 10;i ++){
            System.out.println("goal");
          }
          </pre
          >
          以上代碼在html顯示出來(lái)不會(huì)變形
          posted @ 2008-10-30 23:06 Norsor 閱讀(1523) | 評(píng)論 (5)編輯 收藏

          我用的是webwork最新版本2.2,,
          在頁(yè)面上輸入姓名后提交到helloWorld.action,到一個(gè)新的頁(yè)面,可interceptor不起作用,所以早前輸入的name值也為null.
          可不知為什么interceptor不起作用,請(qǐng)大家?guī)蛶兔?這個(gè)問(wèn)題困擾我一個(gè)星期了..還是沒(méi)能解決..

          Tomcat不報(bào)錯(cuò),但顯示如下信息:
          請(qǐng)各位大俠幫幫忙啊,小弟先謝了...

          2005-12-5 17:13:32 com.opensymphony.xwork.config.providers.XmlConfigurationProvider verifyInterceptor
          嚴(yán)重: Unable to load class com.opensymphony.xwork.spring.interceptor.ActionAutowiringInterceptor for interceptor name au
          towiring. This interceptor will not be available.
          Cause: Could not load class com.opensymphony.xwork.spring.interceptor.ActionAutowiringInterceptor. Perhaps it exists but
          certain dependencies are not available?
          2005-12-5 17:13:32 com.opensymphony.xwork.config.providers.InterceptorBuilder constructInterceptorReference
          嚴(yán)重: Unable to find interceptor class referenced by ref-name completeStack


          我的xwork.xml內(nèi)容如下:

          <xwork>
          <include file="webwork-default.xml"/>

          <package name=
          "default" extends="webwork-default">
          <!-- Include webwork defaults (from WebWork JAR). -->
          <default-interceptor-ref name=
          "completeStack"/>

          <action name=
          "helloWorld"
          class=
          "test.HelloWorldAction">
          <result name=
          "success">hello.jsp</result>
          <result name=
          "input">name.jsp</result>
          </action>
          </package>
          </xwork>
          posted @ 2005-12-05 19:31 Norsor 閱讀(1072) | 評(píng)論 (1)編輯 收藏

          1. found/coin/garden                      I found a coin in my garden.
          2. put/sugar/my tea                         Please put some sugar in my tea.
          3. cut/wood/fire                              Cut some woods for fire.
          4. bought/newspaper                      I bought a piece of newspaper this morning.
          5. made/coffee                                I made a cup of coffee.
          6. like/curtains in this room         I like the curtains in this room.
          posted @ 2005-11-25 10:18 Norsor 閱讀(439) | 評(píng)論 (1)編輯 收藏

          I have been browsing website of the Apache Software Foundation the whole day.
          The Apache Software Foundation is an opensource organization of java, and it has many projects and subprojects, such as Tomcat,Struts,Logging,Web Service and Httpclient.
          This organization has many volunteers from all over the world, they contribute their achievements to this organization.
          The orgznization has developed rapidly.
          I thouht h
          ow  I can share my achievements with them?
          I know  now.
          The organization has a community on it's website.
          I thought I can learned a lot of knowledge of java  here. 

          posted @ 2005-11-23 23:11 Norsor 閱讀(328) | 評(píng)論 (0)編輯 收藏


          Up to now,my classmate Tao Wei has not found his purse.
          There are 30$,a identity  card and some credit cards in his purse,Mrs Tao was very unhappy.
          He wont to remember what he has done the whole day.
          I  lost my purse  two months ago,there were 200$ , a identity card and 3 credit cards in my purse.
          So,I understood Mrs Tao's feeling now.

          posted @ 2005-11-22 19:49 Norsor 閱讀(228) | 評(píng)論 (0)編輯 收藏

          主站蜘蛛池模板: 怀远县| 西峡县| 汤原县| 揭东县| 井冈山市| 茂名市| 涞水县| 闸北区| 淮安市| 兴文县| 泸溪县| 南岸区| 青冈县| 兰西县| 屯留县| 开远市| 崇仁县| 仁布县| 华亭县| 仙游县| 涡阳县| 高阳县| 通城县| 宝山区| 邵阳市| 安新县| 灌阳县| 渭南市| 长泰县| 固始县| 伽师县| 东辽县| 伊金霍洛旗| 个旧市| 阿尔山市| 商河县| 宁明县| 大悟县| 昆山市| 讷河市| 永修县|