kindEditor4.1.7与struts2整合
来源:互联网 发布:java ssh框架面试题 编辑:程序博客网 时间:2024/05/19 16:47
以前在项目中使用fckeditor2.6在线编辑器,他们说界面不怎么好看,于是我换了kindeditor ,在这里主要是与struts2框架的整合,如果是单纯的servlet,kindeditor能直接用于项目中。最初我用的3.5.4版本,整合好的代码见http://download.csdn.net/detail/xiaoliouc/5744355
附件的代码,我已经实现了 kindeditor和struts2整合 , 字数限制等功能。
使用方法:
1、复制kindEditor到你web工程的webContent下
2、复制struts需要的jar包和kindEditor必须jar包到lib下,因为它们的jar包有些重复,选择最新的就ok
3、如果需要后台java代码获取内容,可以在action中定义content属性,getContent就可以获取到
需要注意的是,这里的
<jsp:include page="/kindEditor/jsp/test.jsp">
<jsp:param name="formName" value="Form3"/>
<jsp:param name="editorId" value="content" />
</jsp:include>
page选择合适的路径kindEditor/jsp/test.jsp
表单名与Form3需要保持一致,
editorId的属性最好是单个,不能形如bean.content,如果是这样的话,上传图片会出现问题
如果是从数据库获取内容,并在kindEditor里选中,在action中定义content属性,setContent(bean.getContent());这种方式
bug: ie9不能上传图片
整合得好好的,才发现ie9下没法上传图片,故重新下载kindeditor4.1.7与struts2整合,代码在http://download.csdn.net/detail/xiaoliouc/5744397
- kindEditor4.1.7与struts2整合
- kindEditor4.1.7与struts2整合
- ExtJS3.0与KindEditor4.1.2整合
- ExtJS3.0与KindEditor4.1.2整合
- kindeditor4.x整合SyntaxHighlight…
- Struts2下使用KindEditor4.1.3
- Struts2下使用KindEditor4.1.3
- kindeditor4.x整合SyntaxHighlighter代码高亮
- kindeditor4.x整合SyntaxHighlighter代码高亮
- dwr2与struts2整合
- Struts2与Hibernate整合
- Struts2 与 Spring 整合
- Struts2与Spring整合
- struts2与WebService整合
- JasperReport 与 Struts2 整合
- Struts2与Spring整合
- struts2与kindeditor整合
- struts2与ajaxfileupload整合
- Android 二维码源码 QR码源码
- NSDictionary类使用
- 关于android 使用bitmap的OOM心得和解决方案
- 随机写入一个文件一些字符
- C#网络编程(同步传输字符串) - Part.2
- kindEditor4.1.7与struts2整合
- Combining Hive and Python
- iphone开发 IOS中CoreData的通用代码
- 在DataGridView中加入combobox
- HANA Web Development&Administration Privileges
- NGUI 减少drawcall
- JS获取当前时间并自动更新、Ajax对比
- Mybatis和Spring整合
- iphone(ios开发)之23种设计模式简介