关于FCKeditor与Struts2.0的整合问题
发布网友
发布时间:2022-04-24 14:37
我来回答
共1个回答
热心网友
时间:2023-10-16 18:11
web.xml下面配置
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>*.action</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
<servlet>
<servlet-name>Connector</servlet-name>
<servlet-class>
net.fckeditor.connector.ConnectorServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Connector</servlet-name>
<url-pattern>
/fckeditor/editor/filemanager/connectors/*
</url-pattern>
</servlet-mapping>
项目src下面建立fckeditor.properties
内容如下
connector.userActionImpl=net.fckeditor.requestcycle.impl.UserActionImpl
如果不可以用的话 ,我就不知道了。我也是才解决的上传问题,再看下jar包是否都导进去了