}
}
ActionErrors errors = new ActionErrors();
if(invalidValue){
errors.add(ActionErrors.GLOBAL_ERROR,
new ActionError(ErrorCodes.INVALID_CHAR_APP_NAME));
return errors;
}else if(nullValue && !validValue){
errors.add(ActionErrors.GLOBAL_ERROR,
new ActionError("errors.required", "application name"));
return errors;
}
return null;
}else{
final String configName = request.getParameter("name");
ActionErrors errors = new ActionErrors();
if(GenericValidator.isBlankOrNull(configName)){
errors.add(ActionErrors.GLOBAL_ERROR,
new ActionError("errors.required", "application name"));
return errors;
}else if(configName.indexOf("/") != -1){
errors.add(ActionErrors.GLOBAL_ERROR,
new ActionError(ErrorCodes.INVALID_CHAR_APP_NAME));
return errors;
}else{
return null;
}
}