posts - 35,  comments - 6,  trackbacks - 0

          1)jsp層:
          <html:select property="maintainUnit" style="width:100%">
                        <logic:present name="utilslist" scope="request">
                         <html:options collection="utilslist" property="storeNo"
                          labelProperty="storeName" />
                        </logic:present>
            </html:select>
          2)action層
          List utilslist = bpo.getUnits();
            ((TrustdeedForm)actionForm).setUnitNames(utilslist);
            servletRequest.setAttribute("utilslist", utilslist);
          3)bpo層
          List unitList = new ArrayList();
             //開始事務
             this.beginTransaction();
             List list = tstorehouseDAI.search("from TStorehouse", this.session);
             for(int i=0;i<list.size();++i)
             {
              TStorehouse obj =(TStorehouse)list.get(i);
              unitList.add(obj);
             }
             //結束事務
             this.endTransaction(true);

          4)of course the TStorehouse  obj contain the storeNo and storeName attribute
          posted on 2007-04-17 14:03 NG 閱讀(126) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          <2007年4月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          常用鏈接

          留言簿(1)

          隨筆檔案(35)

          文章分類(5)

          文章檔案(2)

          新聞檔案(5)

          java link

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 区。| 武穴市| 罗定市| 昭觉县| 揭东县| 襄樊市| 普定县| 叶城县| 多伦县| 蒙城县| 镇平县| 山丹县| 青岛市| 雷山县| 朝阳区| 唐海县| 馆陶县| 敦煌市| 平山县| 湄潭县| 晋江市| 饶河县| 平潭县| 尖扎县| 陆川县| 商河县| 轮台县| 泉州市| 宁陕县| 通榆县| 伊通| 铜陵市| 腾冲县| 台安县| 孟津县| 保德县| 仁怀市| 纳雍县| 九龙坡区| 阳泉市| 岢岚县|