fckeditor的内容如何传给struts的actionform中??

来源:百度知道 编辑:UC知道 时间:2024/05/30 06:26:50
fckeditor的内容如何传给struts的actionform中,我在<FCK:editor id="content" basePath="/fcktest/FCKeditor/" .......</FCK:editor>
不是ID匹配就可以了吗?
我每次传给action都是NULL,为什么?

高分!!!!!!!!!!!!
怎么根据类型用struts标签的传递fck里面的值?
<html:form action="/fcktest">
<FCK:editor id="content" basePath="/fcktest/FCKeditor/"
width="100%"
............................
flashUploadURL="/fcktest/FCKeditor/editor/filemanager/upload/simpleuploader?Type=Flash">
</FCK:editor>
<html:submit value="确定"/> <html:cancel value="重置"/>
</html:form>
这是我的代码,你帮忙忙看看? 字数太多,中间省略掉了

FCK标签是你自己定义或第三方的标签库,不是struts的标签库,不会被绑定装载到actionForm得。你可以根据类型用struts标签的传递fck里面的值。

<FCK:editor id="content" basePath="/fcktest/FCKeditor/" .......</FCK:editor>

中加上name="content"

<FCK:editor id="content" name="content" basePath="/fcktest/FCKeditor/" .......</FCK:editor>