parametersSearch.put(new String("name"), putSearchChar(null)); parametersSearch.put(new String("email"), putSearchChar(null)); parametersSearch.put(new String("username"), putSearchChar(username)); parametersSearch.put(new String("documentIdNumber"), putSearchChar(documentIdNumber));
parametersSearch.put(new String("username"), username); parametersSearch.put(new String("documentIdNumber"), documentIdNumber);
    public ActionForward findPerson(ActionMapping mapping, ActionForm actionForm,            HttpServletRequest request, HttpServletResponse response) throws Exception {        ActionErrors errors = new ActionErrors();        IUserView userView = SessionUtils.getUserView(request);        DynaActionForm findPersonForm = (DynaActionForm) actionForm;        String username = null;        if (findPersonForm.get("username") != null) {            username = (String) findPersonForm.get("username");        }        String documentIdNumber = null;        if (findPersonForm.get("documentIdNumber") != null) {            documentIdNumber = (String) findPersonForm.get("documentIdNumber");        }        HashMap parametersSearch = new HashMap();        parametersSearch.put(new String("name"), putSearchChar(null));        parametersSearch.put(new String("email"), putSearchChar(null));        parametersSearch.put(new String("username"), putSearchChar(username));        parametersSearch.put(new String("documentIdNumber"), putSearchChar(documentIdNumber));        Object[] args = { parametersSearch };        List personListFinded = null;        try {            personListFinded = (List) ServiceManagerServiceFactory.executeService(userView,                    "SearchPerson", args);        } catch (FenixServiceException e) {            e.printStackTrace();            errors.add("impossibleFindPerson", new ActionError("error.manager.implossible.findPerson"));        }        if (personListFinded == null || personListFinded.size() < 2) {            errors.add("impossibleFindPerson", new ActionError("error.manager.implossible.findPerson"));        }        if (!errors.isEmpty()) {            saveErrors(request, errors);            return mapping.getInputForward();        }        request.setAttribute("personListFinded", personListFinded.get(1));        return mapping.findForward("confirmPasswordChange");    }