主题 : 帖子如何获取内容
级别: 状元
UID: 33380
积分:50625 加为好友
威望: 21 精华: 3
主题:88 回复:30687
注册时间:2012-05-07
在线时长:0
11#   发表于:2014-08-26 15:38:32  IP:182.214.*.*
接口肯定是可以调用的,只是您那你自己写的action我们无法知道你怎么写的,有可能你自己写错了
功成由勤,业精于勤。
级别: 童生
UID: 65344
积分:37 加为好友
威望: 1 精华: 0
主题:4 回复:17
注册时间:2014-08-06
在线时长:0
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
级别: 童生
UID: 65344
积分:37 加为好友
威望: 1 精华: 0
主题:4 回复:17
注册时间:2014-08-06
在线时长:0
13#   发表于:2014-08-26 15:42:35  IP:221.97.*.*
回复第9楼ERROR org.apache.struts2.dispatcher.Dispatcher - Exception occurred during processing request: null
级别: 童生
UID: 65344
积分:37 加为好友
威望: 1 精华: 0
主题:4 回复:17
注册时间:2014-08-06
在线时长:0
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;
级别: 状元
UID: 33380
积分:50625 加为好友
威望: 21 精华: 3
主题:88 回复:30687
注册时间:2012-05-07
在线时长:0
15#   发表于:2014-08-26 15:44:24  IP:182.214.*.*
回复第9楼ERROR org.apache.struts2.dispatcher.Dispatcher - Exception occurred during processing request: null
您好,涉及增加功能、自己二次开发的代码不在技术支持范围之内。如果您需要增加功能,可以联系我们售前人员,我们提供功能定制服务。
功成由勤,业精于勤。
|< < 1 2 共2页