因?yàn)樵谑褂迷诰€編輯器Fckeditor的上傳圖片的時(shí)候會(huì)跳出
Security error. You probably don't have enough permissions to upload. Please check your server
還有file upload error num 203
后來才知道和Struts2.0的過濾沖突了
在網(wǎng)絡(luò)上查找了下別人是這么說的:struts2對(duì)request進(jìn)行了封裝,所以當(dāng)fck的request.getinputStream的時(shí)候就會(huì)出錯(cuò).修改的方法就是對(duì)filtermapping的路徑進(jìn)行修改。
然后對(duì)web.XML修改下就可以了
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
<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>
<welcome-file-list>
Security error. You probably don't have enough permissions to upload. Please check your server
還有file upload error num 203
后來才知道和Struts2.0的過濾沖突了
在網(wǎng)絡(luò)上查找了下別人是這么說的:struts2對(duì)request進(jìn)行了封裝,所以當(dāng)fck的request.getinputStream的時(shí)候就會(huì)出錯(cuò).修改的方法就是對(duì)filtermapping的路徑進(jìn)行修改。
然后對(duì)web.XML修改下就可以了