转自 http://hi.baidu.com/quandang/blog/item/6f735a17299daa13972b43be.html
大家都知道了struts2 和fckEditor结合中为了上传图片
需要把
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>*.action</url-pattern>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
换掉
/*
但是在后来使用时发现标签datetimepicker不能使用了
后来发现生成的页面中有如下代码
<link rel="stylesheet" href="/workStation/struts/xhtml/styles.css" type="text/css"/>
<script language="JavaScript" type="text/javascript">
// Dojo configuration
djConfig = {
baseRelativePath: "/workStation/struts/dojo",
isDebug: false,
bindEncoding: "gb2312",
debugAtAllCosts: true // not needed, but allows the Venkman debugger to work with the includes
};
</script>
<script language="JavaScript" type="text/javascript"
src="/workStation/struts/dojo/dojo.js"></script>
<script language="JavaScript" type="text/javascript"
src="/workStation/struts/simple/dojoRequire.js"></script>
所以就应加上
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/struts/*</url-pattern>
</filter-mapping>
要不然会找不到相应的js和css文件,大家遇到希望有帮助(结合时不要忘了在<head>中加入 <s:head />它会自动加上上面的代码)
分享到:
相关推荐
Struts2与FCKeditor的整合.doc
解决了在struts2下试用fckeditor上传图片出错
struts2,fckeditor解决上传图片冲突
Fckeditor完美结合Struts2,可以在struts2 的项目中使用Fckeditor的图片上传,等很多功能
struts2中配置FCKeditor,实现强大的编辑功能
struts和fckeditor整合完整版调试无误,不过上传的文件不支持中文名称,抱歉!这个问题我解决不了,如何您下载之后能解决的话,希望您能给我一个连接
Fckeditor完美结合Struts2.doc,Fckeditor完美结合Struts2.doc
这是小弟自己写的一个实际项目,是一个关于信息发布的实例..有助于学习struts2+fckeditor的朋友学习..
该文件是整合了struts2的FCKEditor插件。
struts2下的FCKeditor插件,解决了兼容问题,例子见本人上传的其他资源
web项目中,jsp页面使用FCKeditor编辑,本文档异常详细,按步骤立马能成功使用。
自定义文本编译器FCKeditor-2.3
FCKEditor与Struts2整合.doc FCKEditor与Struts2整合.doc
struts2+fckeditor所作的小论坛
NULL 博文链接:https://jumpman.iteye.com/blog/299240
ext和fckeditor结合使用。解决了ext编辑器的不足之处。
2 FCKeditor的目录和文件精简 4 3 在页面创建FCKeditor 4 3.1 Js创建FCKeditor实例: 4 3.1.1 方法一:内嵌方法(推荐) 4 3.1.2 方法二:替换页面中的Textarea 5 3.1.3 方法三:适合于Ajax的调用方法 6 3.1.4 Js中...
fck解决中文问题:1.上传中文文件乱码;2.创建中文目录乱码;3.无法进入中文目录(乱码造成);4.中文名称的图片无法显示 可直接用myeclipse部署运行,且有超详细说明的配置步骤
最近给公司做网站,采用滴sturt2 extjs fckeditor完成滴,由于是和一个同事一起完成滴所有我做了4个模块,但是技术基本都用了,