Struts文件下传大小和类型限制

Struts文件上传大小和类型限制

public class com.hyj.struts.MyMultipartRequestHandler implements MultipartRequestHandler;

<struts-config>
    <global-exceptions>
		<exception key="Upload.Excepion" type="com.hyj.commons.exception.UploadExcepion" path="/../exception.do" />
    </global-exceptions>

    <controller maxFileSize="2M" multipartClass="com.hyj.struts.MyMultipartRequestHandler" inputForward="true" />
</struts-config>