这个很难么?你设计vo的时候设如下:
class:int id,String classname,List news这样所有的都存在一个vo里了
class:int id,String classname,List news这样所有的都存在一个vo里了
解决方案 »
- java 解压zip中文文件 出现错误
- SPRING中使用注释事务,获取BEAN出错。
- 实际正式项目部署tomcat的时候用那个呀
- 下载地址解析!
- hibernate3 数据库问题
- 怎么能在lucene中运行CQL?
- Cause: java.sql.SQLException: Could not retrieve transation read-only status ser
- 求救,websphere内存泄漏
- htmlparser解析网页问题
- 问一个比较基础的问题,也100分相送!!!
- 错误提示:Hibernate operation: could not update:
- rpc.Call错误,300求解
private int id = 0;
private String className = null;
private List subNews = new ArrayList(); public ThingClass(){
} public loadById(){
//id, className从主表中获取
//然后根据关联到news表把属于这个id的东西取出来放在subNews里面
} //getter and setter...
}
在jsp里面用两次<logic:iterate>就可以了