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();
             //開始事務(wù)
             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);
             }
             //結(jié)束事務(wù)
             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)  編輯  收藏

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


          網(wǎng)站導(dǎo)航:
           
          <2007年4月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          常用鏈接

          留言簿(1)

          隨筆檔案(35)

          文章分類(5)

          文章檔案(2)

          新聞檔案(5)

          java link

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 巴林右旗| 黄梅县| 潍坊市| 盐池县| 通州市| 克拉玛依市| 抚远县| 连南| 大理市| 木里| 阳谷县| 凉城县| 博兴县| 溆浦县| 白朗县| 疏勒县| 虹口区| 金阳县| 贵州省| 和田市| 甘孜县| 颍上县| 淮北市| 宁德市| 定襄县| 旌德县| 深水埗区| 稻城县| 怀化市| 潼南县| 海伦市| 万山特区| 新巴尔虎右旗| 辉南县| 贵溪市| 广东省| 宁陕县| 武山县| 绥化市| 舒城县| 土默特右旗|