浏览 3036 次
锁定老帖子 主题:struts中使用fckeditor的问题
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
|
|
---|---|
作者 | 正文 |
发表时间:2007-10-17
今天在struts中整合了fckeditor,遇到一个地方卡住了,FCKeditor编辑后的文本是如何填充到对应的actionform中的呢?不用FCKeditor的时候,我们用我们用标签 xml 代码
声明:ITeye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
推荐链接
|
|
返回顶楼 | |
发表时间:2007-11-09
你可以使用fck标签
例如想要提交fck内容可以这样做 form.jsp中的部分代码 <% String basePath=request.getContextPath()+"/FCKeditor/"; %> <FCK:editor id="body" basePath="<%=basePath%>" height="260" imageBrowserURL="/FCKeditor/editor/filemanager/browser/default/browser.html?Type=Image&Connector=connectors/jsp/connector" linkBrowserURL="/FCKeditor/editor/filemanager/browser/default/browser.html?Connector=connectors/jsp/connector" flashBrowserURL="/FCKeditor/editor/filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/jsp/connector" imageUploadURL="/FCKeditor/editor/filemanager/upload/simpleuploader?Type=Image" linkUploadURL="/FCKeditor/editor/filemanager/upload/simpleuploader?Type=File" flashUploadURL="/FCKeditor/editor/filemanager/upload/simpleuploader?Type=Flash"> </FCK:editor> frombean中正常书写就可以了,那么就可以把id=“body” 赋值给from了,然后再action中处理就可以了 |
|
返回顶楼 | |
发表时间:2007-11-09
你可以使用fck标签
例如想要提交fck内容可以这样做 form.jsp中的部分代码 <% String basePath=request.getContextPath()+"/FCKeditor/"; %> <FCK:editor id="body" basePath="<%=basePath%>" height="260" imageBrowserURL="/FCKeditor/editor/filemanager/browser/default/browser.html?Type=Image&Connector=connectors/jsp/connector" linkBrowserURL="/FCKeditor/editor/filemanager/browser/default/browser.html?Connector=connectors/jsp/connector" flashBrowserURL="/FCKeditor/editor/filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/jsp/connector" imageUploadURL="/FCKeditor/editor/filemanager/upload/simpleuploader?Type=Image" linkUploadURL="/FCKeditor/editor/filemanager/upload/simpleuploader?Type=File" flashUploadURL="/FCKeditor/editor/filemanager/upload/simpleuploader?Type=Flash"> </FCK:editor> frombean中正常书写就可以了,那么就可以把id=“body” 赋值给from了,然后再action中处理就可以了 |
|
返回顶楼 | |