2010-05-20 1 views

답변

0

파일 struts-plugin.xml. 플러그인의 jar 패키지의 루트 디렉토리에 있어야합니다.

편집 : 물론 struts-plugin.xml을 수정할 필요가 없습니다. 이처럼 struts.xml에 요격 정의를 재정의 할 수

<action name="myAction" class="myActionClass"> 
    <interceptor-ref name="defaultStackHibernate"> 
    <param name="fileUpload.allowedTypes">image/png,image/gif,image/jpeg</param> 
    </interceptor-ref> 
</action> 

더 많은 조언을 http://struts.apache.org/2.x/docs/interceptors.html를 참조하십시오.