主题 : 帖子如何获取内容 |
级别: 状元
|
11# 发表于:2014-08-26 15:38:32 IP:182.214.*.*
|
||||
---|---|---|---|---|---|
级别: 童生
|
12# 发表于:2014-08-26 15:41:59 IP:221.97.*.*
回复第9楼5:36:32.911 ERROR org.apache.struts2.dispatcher.Dispatcher - Exception occurred during processing request: null
|
||
---|---|---|---|
级别: 童生
|
13# 发表于:2014-08-26 15:42:35 IP:221.97.*.*
回复第9楼ERROR org.apache.struts2.dispatcher.Dispatcher - Exception occurred during processing request: null
|
||
---|---|---|---|
级别: 童生
|
14# 发表于:2014-08-26 15:43:58 IP:221.97.*.*
回复第11楼:就是写了一个XXAction.java 然后里面有一个方法
/** * * 获取帖子的详情 * */ public void getTopicDetial(Integer topicId) { //获取帖子的作者和标题 BbsTopic text = bbsTopicMng.findById(topicId); //text.getCreateTime(); author = text.getCreater().getUsername(); title = text.getTitle(); //获取帖子内容 List<BbsPost> bbsPost = bbsPostMng.getPostByTopic(topicId); content = bbsPost.get(0).getContentHtml(); } @Autowired protected BbsTopicMng bbsTopicMng; @Autowired protected BbsPostMng bbsPostMng; |
||
---|---|---|---|
级别: 状元
|
15# 发表于:2014-08-26 15:44:24 IP:182.214.*.*
您好,涉及增加功能、自己二次开发的代码不在技术支持范围之内。如果您需要增加功能,可以联系我们售前人员,我们提供功能定制服务。 |
||
---|---|---|---|