request.setAttribute("todayDate", new DateTime().toString("yyyyMMdd"));
    public ActionForward showRequest(ActionMapping mapping, ActionForm actionForm,            HttpServletRequest request, HttpServletResponse response) throws Exception {        // verificar autorizao        final String codeString = request.getParameter("idInternal");        Integer code = null;        if (codeString == null) {            code = (Integer) request.getAttribute("idInternal");        } else {            code = new Integer(codeString);        }        final ParkingRequest parkingRequest = rootDomainObject.readParkingRequestByOID(code);        if (parkingRequest.getParkingRequestState() == ParkingRequestState.PENDING) {            request.setAttribute("groups", ParkingGroup.getAll());        }        request.setAttribute("parkingRequest", parkingRequest);        request.setAttribute("parkingPartyBean", new ParkingPartyBean(parkingRequest.getParkingParty()));        DynaActionForm dynaActionForm = (DynaActionForm) actionForm;        if (!StringUtils.isEmpty(dynaActionForm.getString("cardAlwaysValid"))) { // in case of error validation            dynaActionForm.set("cardAlwaysValid", dynaActionForm.getString("cardAlwaysValid"));        } else {            dynaActionForm.set("cardAlwaysValid", "no");        }        if (parkingRequest.getParkingParty().getParty().isPerson()) {            Person person = (Person) parkingRequest.getParkingParty().getParty();            if (person.getTeacher() != null                    && person.getTeacher().isMonitor(ExecutionPeriod.readActualExecutionPeriod())) {                request.setAttribute("monitor", "true");            }        }        String parkingRequestState = request.getParameter("parkingRequestState");        if (parkingRequestState == null) {            parkingRequestState = "";        }        String parkingPartyClassification = request.getParameter("parkingPartyClassification");        if (parkingPartyClassification == null) {            parkingPartyClassification = "";        }        String personName = request.getParameter("personName");        if (personName == null) {            personName = "";        }        String carPlateNumber = request.getParameter("carPlateNumber");        if (carPlateNumber == null) {            carPlateNumber = "";        }        request.setAttribute("parkingRequestState", parkingRequestState);        request.setAttribute("parkingPartyClassification", parkingPartyClassification);        request.setAttribute("personName", personName);        request.setAttribute("carPlateNumber", carPlateNumber);        request.setAttribute("todayDate", new DateTime().toString("yyyyMMdd"));        return mapping.findForward("showParkingRequest");    }