- UID
- 9314
- 帖子
- 3232
- 精华
- 0
- 威望
- 4
- 阅读权限
- 100
- 性别
- 男
- 注册时间
- 1970-1-1
|
196#
发表于 2006-7-21 16:10
| 只看该作者
原帖由 无四嗲宝 于 2006-7-21 15:59 发表
帮帮忙,搞JAVA开发,我怀疑你认识JAVA伐。。。
请问你知道什么是HIBERNATE么?
什么叫O-R MAPPING?
什么是STRUTS?
知道下面是在做什么操作么?
public Object getJJ(Map inMap,Map outMap){
System.out.println("==================进入SELFACTION==getJJ=======");
Long year1;
Object coll111 = new Vector();
try {
Object col = (Object) inMap.get("col");
System.out.println("=======col====="+col);
Collection coll = (Collection) inMap.get("col");
System.out.println("=======coll====="+coll);
int a=0;
Iterator colIt = coll.iterator();
while (colIt.hasNext()) {
a++;
Object objs = colIt.next();
if(a==2){
coll111 =objs;
System.out.println("===coll111=11=="+coll111);
}
}
System.out.println("===coll111=22=="+coll111);
year1 = (Long)MetUtils.getProperty(coll111,"year");
System.out.println("===year1==="+year1);
System.out.println("==================操作结束==getJJ=======");
outMap.put("col",col);
outMap.put("coll",coll111);
}
catch (Exception ex) {
ex.printStackTrace();
}
return "1";
} |
|