George World

          技術(shù)改變明天,創(chuàng)新塑造未來(lái)! i(at)huadev.com Follow Me: http://t.sina.com.cn/georgeworld

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

          如果在Struts2的Action中有一個(gè)變量: private String CCustomerInfo cCustomerInfo;

          則使用MyEclipse生成的它的getter方法是:getCCustomerInfo()

          生成的setter方法是:setCCustomerInfo(CCustomerInfo cCustomerInfo);

           

          針對(duì)類似“aTestClass”這樣的類變量,IDE生成的getter和setter無(wú)法與Struts2頁(yè)面上的輸入框name綁定,遇到這種情況,應(yīng)該將“aTestClass”這樣的類變量修改成“testClass”這樣的變量名,然后在生成它的getter和setter,生成的getter和setter方法應(yīng)該是:

          getTestClass()、setTestClass(ATestClass testClass)

          posted on 2010-10-23 13:41 George-tech 閱讀(814) 評(píng)論(0)  編輯  收藏

          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 大荔县| 宕昌县| 西乌珠穆沁旗| 大余县| 泸州市| 镶黄旗| 尼勒克县| 鄱阳县| 南华县| 兴隆县| 长泰县| 凤山县| 江达县| 治多县| 洛扎县| 宜宾县| 宁阳县| 桦甸市| 商洛市| 巴楚县| 濮阳县| 株洲市| 光山县| 调兵山市| 贵溪市| 海原县| 阜宁县| 万山特区| 崇仁县| 纳雍县| 北川| 旺苍县| 右玉县| 镇平县| 尖扎县| 宝应县| 休宁县| 铅山县| 惠来县| 保山市| 陆河县|