protected static String getFieldValue(HttpServletRequest request, String fieldName) {
        String value = request.getParameter(fieldName);
        if(value == null || value.trim().length() == 0) {
            return null;
        } else {
            return value;
        }
    }