final int columnNumber = 73;
    public ActionForward generate(ActionMapping mapping, ActionForm form, HttpServletRequest request,            HttpServletResponse response) throws Exception {        HttpSession session = request.getSession(false);        IUserView userView = (IUserView) session.getAttribute(SessionConstants.U_VIEW);        InfoRegistrationDeclaration infoRegistrationDeclaration = null;        DynaActionForm studentForm = (DynaActionForm) form;        String studentNumber = (String) studentForm.get("studentNumber");        Object args[] = { new Integer(studentNumber), DegreeType.DEGREE };        infoRegistrationDeclaration = (InfoRegistrationDeclaration) ServiceManagerServiceFactory                .executeService(userView, "ReadInfoRegistrationDeclaration", args);                String degreeName = infoRegistrationDeclaration.getDegreeName();        final int columnNumber = 73;        InfoPerson infoPerson = infoRegistrationDeclaration.getInfoPerson();        Calendar calendar = Calendar.getInstance();        String idNumber = infoPerson.getNumeroDocumentoIdentificacao();        String parishOfBirth = infoPerson.getFreguesiaNaturalidade();        String districtOfBirth = infoPerson.getDistritoNaturalidade();        String nameOfFather = infoPerson.getNomePai();        String nameOfMother = infoPerson.getNomeMae();        String partOne = "DECLARA, a pedido do interessado, que o aluno Nmero " + studentNumber + ", ";        String partTwo = infoPerson.getNome().toUpperCase() + " ";        String partThree = "portador do Bilhete de Identidade " + idNumber + ", ";        String partFour = "natural de " + parishOfBirth.toUpperCase() + ", "                + districtOfBirth.toUpperCase() + " ";        String partFive = "filho de " + nameOfFather.toUpperCase() + " ";        String partSix = "e de " + nameOfMother.toUpperCase() + ", ";        String partSeven = "no ano lectivo "                + infoRegistrationDeclaration.getInfoExecutionYear().getYear()                + " EST INSCRITO no curso de " + degreeName.toUpperCase() + " deste instituto.";        List allMonths = Data.getMonths();        LabelValueBean label = (LabelValueBean) allMonths.get(calendar.get(Calendar.MONTH) + 1);        String month = label.getLabel();        String partEight = "Secretaria dos Servios Acadmicos do Instituto Superior Tcnico,<br>em Lisboa, "                + calendar.get(Calendar.DAY_OF_MONTH)                + " de "                + month                + " de "                + calendar.get(Calendar.YEAR);        request.setAttribute("partOne1", partOne);        request.setAttribute("partTwo1", partTwo);        request.setAttribute("partThree1", partThree);        request.setAttribute("partFour1", partFour);        request.setAttribute("partFive1", partFive);        request.setAttribute("partSix1", partSix);        request.setAttribute("partSeven1", partSeven);        request.setAttribute("partEight1", partEight);        return mapping.findForward("sucess");    }