关于jive发帖的问题

06-07-25 PIXY

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
2006-08-04 09:54
换个说法吧

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

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

应该怎样写呢?