forum.jsp显示乱码,其它正常,为何?

wmghost 03-04-19

问题:
----------------------------------------
forum.jsp页面:是乱码
........................
Forum forum = myEnv.getForumFactory().getForum(forumID);
forum.getName();


thread.jsp页面, 正常:
.............................
Forum forum = myEnv.getForumFactory().getForum(forumID);
ForumThread thread = forum.getThread(threadID);
TreeWalker treeWalker = thread.treeWalker();
ForumMessage rootMessage = thread.getRootMessage();
Iterator messages = treeWalker.recursiveChildren(rootMessage);
String body = message.getBody();

要找出两者之间的区别
ForumFactory是一个单子, ForumFactory根据用户的权限生成相应的ForumFactoryProxy对象
ForumFactoryProxy的getForum方法返回一个ForumProxy
ForumfactoryProxy.getForum(long forumID):
public Forum getForum(long forumID) throws ForumNotFoundException, UnauthorizedException {
Forum forum = factory.getForum(forumID);
return new ForumProxy(forum, authorization, newPermissions);
}
此处的factory可能是DBForumFactory