JiveJdon Community Forums
在线64人   首页   主题总表   培训咨询   精华   查搜   注册    登陆
首页 » 论坛 » 开源JdonFramework及其应用案例论坛
???en_US.forumThreadPrev.name??? 上一主题
  Go back to the topic 返回本主题   Go back to the topic listing返回主题列表
???en_US.forumThreadNext.name??? 下一主题
Go 总共有 1 回复 / 1
 发表新帖子   回复该主题贴
PIXY

悄悄话
发表文章: 2
注册时间: 2006年07月25日 14:58
关于jive发帖的问题 2006年07月25日 14:59 到本帖网址 加入本帖到收藏夹 发送到手机 回复该主题
标签列表

PostAction action = (PostAction)getAction(request);
// There is guaranteed to be a valid forum object available at this point:
Forum forum = action.getForum();

ForumMessage tempNewMessage;
ForumThread thread;
tempNewMessage=forum.createMessage();
tempNewMessage.setProperty("name","message_name");
tempNewMessage.setProperty("email","message_email");
tempNewMessage.setSubject("message_subject");
tempNewMessage.setBody("message_body");

thread=forum.createThread(tempNewMessage);
forum.addThread(thread);



用上述代码增加的主题在被回复的时候能够恢复成功 但总是提示 发生常见错误


似乎是缺失了某个属性。

有可能是什么原因造成的呢?
PIXY

悄悄话
发表文章: 2
注册时间: 2006年07月25日 14:58
Re: 关于jive发帖的问题 2006年08月04日 09:54 到本帖网址 加入本帖到收藏夹 发送到手机 回复该主题
换个说法吧

我是希望做到不经过表单的填写提交,直接用参数的方式增加一个新帖

论坛版面已经设定为游客也可以发帖

应该怎样写呢?
这个主题有 1 回复 / 1Go
???en_US.forumThreadPrev.name??? 上一主题
  Go back to the topic 返回本主题   Go back to the topic listing返回主题列表    返回页首返回页首
???en_US.forumThreadNext.name??? 下一主题
热点TAG: AOP cache 缓存 DDD EJB 集群 设计模式 Hibernate IOC JiveJdon OO RBAC Seam Spring Struts
google yahoo 新浪ViVi 365Key网摘 天极网摘 CSDN网摘 添加到百度搜藏 POCO网摘 博采网摘
查询本论坛内 回复超过的热门帖子
     回复该主题贴
标题
 
粗体 斜体 下划线 插入图片 插入代码 插入url链接 插入附件
内容
 

手机阅读 add to google add to yahoo
解惑之道在J道 ,打造中国最具影响力的的企业软件社区
OpenSource JIVEJDON v3.0 Powered by JdonFramework Code © 2002-08 jdon.com
anti spam