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;
}