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 阅读(117) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航:
 
<2007年4月>
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345

常用链接

留言簿(1)

随笔档案(35)

文章分类(5)

文章档案(2)

新闻档案(5)

java link

搜索

  •  

最新评论

阅读排行榜

评论排行榜