Package org.apache.struts.config

Examples of org.apache.struts.config.ControllerConfig


            return errors;
        }
        Boolean maxSize= (Boolean)request.getAttribute(MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED);
        if ((maxSize!=null) && (maxSize.booleanValue())) {
            String size= null ;
            ControllerConfig cc= mapping.getModuleConfig().getControllerConfig() ;
            if (cc==null) {
                size= Long.toString(CommonsMultipartRequestHandler.DEFAULT_SIZE_MAX);
            } else {
                size= cc.getMaxFileSize() ;// struts-config : <controller maxFileSize="nK" />
            }
            errors.add("styleID", new ActionError("error.file.maxLengthExceeded",size)) ;
            return errors;
        }
View Full Code Here

TOP

Related Classes of org.apache.struts.config.ControllerConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.