日期:2014-05-20 浏览次数:20687 次
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" "http://struts.apache.org/dtds/struts-2.1.dtd"> <struts> <constant name="struts.multipart.saveDir" value="/chengke"></constant> <constant name="struts.custom.i18n.resources" value="globalMessages"></constant> <constant name="struts.devMode" value="true"></constant> <package name="fileupload" extends="struts-default" namespace="/"> <action name="upload" class="com.chk.action.UploadAction"> <interceptor-ref name="fileUpload"> <param name="allowedTypes">image/png,image/gif,image/jpeg,image/bmp,image/jpg</param> </interceptor-ref> <interceptor-ref name="defaultStack"></interceptor-ref> <param name="savePath">/upload</param> <result>/ok.jsp</result> <result name="input">/upload.jsp</result> </action> </package> </struts>