实例介绍
由于项目需求,要开发一个新闻发布模块,在网上找了找,看有没有什么插件可以用,后来发现了Ueditor百度编辑器,的确挺强大的。这里我只讲解jsp版本的,与servlet和SpringMVC整合,两种方式的应用。这里提供了纯servlet使用的代码,可以完成一个简单的新闻发布系统,做的比较简单,但是代码写的很详细,根据你自己的需求可以补充的。如果想和SpringMVC 整合,请结合文档使用,也是在CSDN中下载。
【实例截图】
【核心代码】
mywebsite
└── mywebsite
├── build
│ └── classes
│ └── com
│ └── ServletTest.class
├── src
│ └── com
│ └── ServletTest.java
└── WebRoot
├── META-INF
│ └── MANIFEST.MF
├── new.jsp
├── ueditor
│ ├── demo.html
│ ├── demo.jsp
│ ├── dialogs
│ │ ├── anchor
│ │ │ └── anchor.html
│ │ ├── attachment
│ │ │ ├── attachment.css
│ │ │ ├── attachment.html
│ │ │ ├── attachment.js
│ │ │ ├── fileTypeImages
│ │ │ │ ├── icon_chm.gif
│ │ │ │ ├── icon_default.png
│ │ │ │ ├── icon_doc.gif
│ │ │ │ ├── icon_exe.gif
│ │ │ │ ├── icon_jpg.gif
│ │ │ │ ├── icon_mp3.gif
│ │ │ │ ├── icon_mv.gif
│ │ │ │ ├── icon_pdf.gif
│ │ │ │ ├── icon_ppt.gif
│ │ │ │ ├── icon_psd.gif
│ │ │ │ ├── icon_rar.gif
│ │ │ │ ├── icon_txt.gif
│ │ │ │ └── icon_xls.gif
│ │ │ └── images
│ │ │ ├── alignicon.gif
│ │ │ ├── alignicon.png
│ │ │ ├── bg.png
│ │ │ ├── file-icons.gif
│ │ │ ├── file-icons.png
│ │ │ ├── icons.gif
│ │ │ ├── icons.png
│ │ │ ├── image.png
│ │ │ ├── progress.png
│ │ │ ├── success.gif
│ │ │ └── success.png
│ │ ├── background
│ │ │ ├── background.css
│ │ │ ├── background.html
│ │ │ ├── background.js
│ │ │ └── images
│ │ │ ├── bg.png
│ │ │ └── success.png
│ │ ├── charts
│ │ │ ├── chart.config.js
│ │ │ ├── charts.css
│ │ │ ├── charts.html
│ │ │ ├── charts.js
│ │ │ └── images
│ │ │ ├── charts0.png
│ │ │ ├── charts1.png
│ │ │ ├── charts2.png
│ │ │ ├── charts3.png
│ │ │ ├── charts4.png
│ │ │ └── charts5.png
│ │ ├── emotion
│ │ │ ├── emotion.css
│ │ │ ├── emotion.html
│ │ │ ├── emotion.js
│ │ │ └── images
│ │ │ ├── 0.gif
│ │ │ ├── bface.gif
│ │ │ ├── cface.gif
│ │ │ ├── fface.gif
│ │ │ ├── jxface2.gif
│ │ │ ├── neweditor-tab-bg.png
│ │ │ ├── tface.gif
│ │ │ ├── wface.gif
│ │ │ └── yface.gif
│ │ ├── gmap
│ │ │ └── gmap.html
│ │ ├── help
│ │ │ ├── help.css
│ │ │ ├── help.html
│ │ │ └── help.js
│ │ ├── image
│ │ │ ├── image.css
│ │ │ ├── image.html
│ │ │ ├── image.js
│ │ │ └── images
│ │ │ ├── alignicon.jpg
│ │ │ ├── bg.png
│ │ │ ├── icons.gif
│ │ │ ├── icons.png
│ │ │ ├── image.png
│ │ │ ├── progress.png
│ │ │ ├── success.gif
│ │ │ └── success.png
│ │ ├── insertframe
│ │ │ └── insertframe.html
│ │ ├── internal.js
│ │ ├── link
│ │ │ └── link.html
│ │ ├── map
│ │ │ ├── map.html
│ │ │ └── show.html
│ │ ├── music
│ │ │ ├── music.css
│ │ │ ├── music.html
│ │ │ └── music.js
│ │ ├── preview
│ │ │ └── preview.html
│ │ ├── scrawl
│ │ │ ├── images
│ │ │ │ ├── addimg.png
│ │ │ │ ├── brush.png
│ │ │ │ ├── delimgH.png
│ │ │ │ ├── delimg.png
│ │ │ │ ├── emptyH.png
│ │ │ │ ├── empty.png
│ │ │ │ ├── eraser.png
│ │ │ │ ├── redoH.png
│ │ │ │ ├── redo.png
│ │ │ │ ├── scaleH.png
│ │ │ │ ├── scale.png
│ │ │ │ ├── size.png
│ │ │ │ ├── undoH.png
│ │ │ │ └── undo.png
│ │ │ ├── scrawl.css
│ │ │ ├── scrawl.html
│ │ │ └── scrawl.js
│ │ ├── searchreplace
│ │ │ ├── searchreplace.html
│ │ │ └── searchreplace.js
│ │ ├── snapscreen
│ │ │ └── snapscreen.html
│ │ ├── spechars
│ │ │ ├── spechars.html
│ │ │ └── spechars.js
│ │ ├── table
│ │ │ ├── dragicon.png
│ │ │ ├── edittable.css
│ │ │ ├── edittable.html
│ │ │ ├── edittable.js
│ │ │ ├── edittd.html
│ │ │ └── edittip.html
│ │ ├── template
│ │ │ ├── config.js
│ │ │ ├── images
│ │ │ │ ├── bg.gif
│ │ │ │ ├── pre0.png
│ │ │ │ ├── pre1.png
│ │ │ │ ├── pre2.png
│ │ │ │ ├── pre3.png
│ │ │ │ └── pre4.png
│ │ │ ├── template.css
│ │ │ ├── template.html
│ │ │ └── template.js
│ │ ├── video
│ │ │ ├── images
│ │ │ │ ├── bg.png
│ │ │ │ ├── center_focus.jpg
│ │ │ │ ├── file-icons.gif
│ │ │ │ ├── file-icons.png
│ │ │ │ ├── icons.gif
│ │ │ │ ├── icons.png
│ │ │ │ ├── image.png
│ │ │ │ ├── left_focus.jpg
│ │ │ │ ├── none_focus.jpg
│ │ │ │ ├── progress.png
│ │ │ │ ├── right_focus.jpg
│ │ │ │ ├── success.gif
│ │ │ │ └── success.png
│ │ │ ├── video.css
│ │ │ ├── video.html
│ │ │ └── video.js
│ │ ├── webapp
│ │ │ └── webapp.html
│ │ └── wordimage
│ │ ├── fClipboard_ueditor.swf
│ │ ├── imageUploader.swf
│ │ ├── tangram.js
│ │ ├── wordimage.html
│ │ └── wordimage.js
│ ├── index.html
│ ├── jsp
│ │ ├── config.json
│ │ ├── controller.jsp
│ │ └── lib
│ │ ├── commons-codec-1.9.jar
│ │ ├── commons-fileupload-1.3.1.jar
│ │ ├── commons-io-2.4.jar
│ │ ├── json.jar
│ │ └── ueditor-1.1.2.jar
│ ├── lang
│ │ ├── en
│ │ │ ├── en.js
│ │ │ └── images
│ │ │ ├── addimage.png
│ │ │ ├── alldeletebtnhoverskin.png
│ │ │ ├── alldeletebtnupskin.png
│ │ │ ├── background.png
│ │ │ ├── button.png
│ │ │ ├── copy.png
│ │ │ ├── deletedisable.png
│ │ │ ├── deleteenable.png
│ │ │ ├── listbackground.png
│ │ │ ├── localimage.png
│ │ │ ├── music.png
│ │ │ ├── rotateleftdisable.png
│ │ │ ├── rotateleftenable.png
│ │ │ ├── rotaterightdisable.png
│ │ │ ├── rotaterightenable.png
│ │ │ └── upload.png
│ │ └── zh-cn
│ │ ├── images
│ │ │ ├── copy.png
│ │ │ ├── localimage.png
│ │ │ ├── music.png
│ │ │ └── upload.png
│ │ └── zh-cn.js
│ ├── themes
│ │ ├── default
│ │ │ ├── css
│ │ │ │ ├── ueditor.css
│ │ │ │ └── ueditor.min.css
│ │ │ ├── dialogbase.css
│ │ │ └── images
│ │ │ ├── anchor.gif
│ │ │ ├── arrow_down.png
│ │ │ ├── arrow.png
│ │ │ ├── arrow_up.png
│ │ │ ├── button-bg.gif
│ │ │ ├── cancelbutton.gif
│ │ │ ├── charts.png
│ │ │ ├── cursor_h.gif
│ │ │ ├── cursor_h.png
│ │ │ ├── cursor_v.gif
│ │ │ ├── cursor_v.png
│ │ │ ├── dialog-title-bg.png
│ │ │ ├── filescan.png
│ │ │ ├── highlighted.gif
│ │ │ ├── icons-all.gif
│ │ │ ├── icons.gif
│ │ │ ├── icons.png
│ │ │ ├── loaderror.png
│ │ │ ├── loading.gif
│ │ │ ├── lock.gif
│ │ │ ├── neweditor-tab-bg.png
│ │ │ ├── pagebreak.gif
│ │ │ ├── scale.png
│ │ │ ├── sortable.png
│ │ │ ├── spacer.gif
│ │ │ ├── sparator_v.png
│ │ │ ├── table-cell-align.png
│ │ │ ├── tangram-colorpicker.png
│ │ │ ├── toolbar_bg.png
│ │ │ ├── unhighlighted.gif
│ │ │ ├── upload.png
│ │ │ ├── videologo.gif
│ │ │ ├── word.gif
│ │ │ └── wordpaste.png
│ │ └── iframe.css
│ ├── third-party
│ │ ├── codemirror
│ │ │ ├── codemirror.css
│ │ │ └── codemirror.js
│ │ ├── highcharts
│ │ │ ├── adapters
│ │ │ │ ├── mootools-adapter.js
│ │ │ │ ├── mootools-adapter.src.js
│ │ │ │ ├── prototype-adapter.js
│ │ │ │ ├── prototype-adapter.src.js
│ │ │ │ ├── standalone-framework.js
│ │ │ │ └── standalone-framework.src.js
│ │ │ ├── highcharts.js
│ │ │ ├── highcharts-more.js
│ │ │ ├── highcharts-more.src.js
│ │ │ ├── highcharts.src.js
│ │ │ ├── modules
│ │ │ │ ├── annotations.js
│ │ │ │ ├── annotations.src.js
│ │ │ │ ├── canvas-tools.js
│ │ │ │ ├── canvas-tools.src.js
│ │ │ │ ├── data.js
│ │ │ │ ├── data.src.js
│ │ │ │ ├── drilldown.js
│ │ │ │ ├── drilldown.src.js
│ │ │ │ ├── exporting.js
│ │ │ │ ├── exporting.src.js
│ │ │ │ ├── funnel.js
│ │ │ │ ├── funnel.src.js
│ │ │ │ ├── heatmap.js
│ │ │ │ ├── heatmap.src.js
│ │ │ │ ├── map.js
│ │ │ │ ├── map.src.js
│ │ │ │ ├── no-data-to-display.js
│ │ │ │ └── no-data-to-display.src.js
│ │ │ └── themes
│ │ │ ├── dark-blue.js
│ │ │ ├── dark-green.js
│ │ │ ├── gray.js
│ │ │ ├── grid.js
│ │ │ └── skies.js
│ │ ├── jquery-1.10.2.js
│ │ ├── jquery-1.10.2.min.js
│ │ ├── jquery-1.10.2.min.map
│ │ ├── snapscreen
│ │ │ └── UEditorSnapscreen.exe
│ │ ├── SyntaxHighlighter
│ │ │ ├── shCoreDefault.css
│ │ │ └── shCore.js
│ │ ├── video-js
│ │ │ ├── font
│ │ │ │ ├── vjs.eot
│ │ │ │ ├── vjs.svg
│ │ │ │ ├── vjs.ttf
│ │ │ │ └── vjs.woff
│ │ │ ├── video.dev.js
│ │ │ ├── video.js
│ │ │ ├── video-js.css
│ │ │ ├── video-js.min.css
│ │ │ └── video-js.swf
│ │ ├── webuploader
│ │ │ ├── Uploader.swf
│ │ │ ├── webuploader.css
│ │ │ ├── webuploader.custom.js
│ │ │ ├── webuploader.custom.min.js
│ │ │ ├── webuploader.flashonly.js
│ │ │ ├── webuploader.flashonly.min.js
│ │ │ ├── webuploader.html5only.js
│ │ │ ├── webuploader.html5only.min.js
│ │ │ ├── webuploader.js
│ │ │ ├── webuploader.min.js
│ │ │ ├── webuploader.withoutimage.js
│ │ │ └── webuploader.withoutimage.min.js
│ │ ├── xss.min.js
│ │ └── zeroclipboard
│ │ ├── ZeroClipboard.js
│ │ ├── ZeroClipboard.min.js
│ │ └── ZeroClipboard.swf
│ ├── ueditor.all.js
│ ├── ueditor.all.min.js
│ ├── ueditor.config.js
│ ├── ueditor.parse.js
│ └── ueditor.parse.min.js
└── WEB-INF
├── lib
│ ├── commons-codec-1.9.jar
│ ├── commons-fileupload-1.3.1.jar
│ ├── commons-io-2.4.jar
│ ├── json.jar
│ ├── jstl-1.2.jar
│ ├── standard-1.1.2.jar
│ └── ueditor-1.1.2.jar
└── web.xml
66 directories, 292 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论