Topic: 研究jive论坛一个疑惑

  Print this page

1.研究jive论坛一个疑惑 Copy to clipboard
Posted by: David0203
Posted on: 2005-01-18 15:18

在index.jsp中
Iterator forums = myEnv.getForumFactory().forums();
while (forums.hasNext()) {
Forum forum = (Forum)forums.next();
String description = forum.getDescription();
boolean isNew = (forum.getModifiedDate().getTime() > lastVisited.getTime());
ForumMessage lastPost = myEnv.du.getLastPost(forum);
可Forum类中没有具体实现getModifiedDate()等方法。forum.getModifiedDate().getTime()是怎么实现的?
小弟由于初学,所以请各位帮助一下。

2.Re:研究jive论坛一个疑惑 [Re: David0203] Copy to clipboard
Posted by: chenyajun5
Posted on: 2005-01-27 09:59

从myEnv.getForumFactory()入手,看看这个函数返回了什么。。。
forums.next()返回的对象应该是实现了Forum接口。。。


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923