System.out.println ("Os casos sao " + cases); System.out.println("O estudante e " + student); System.out.println("A disciplina e " + curricularCourse); System.out.println ("O tema e " + theme); System.out.println ("A motivacao e " + motivation); System.out.println ("A modalidade e " + modality); System.out.println ("O seminario e " + seminary); System.out.println ("As escolhas dos casos sao " + casesChoices);
    public ActionForward execute(             ActionMapping mapping,             ActionForm form,             HttpServletRequest request,             HttpServletResponse response)             throws FenixActionException         {             HttpSession session= this.getSession(request);             IUserView userView= (IUserView) session.getAttribute(SessionConstants.U_VIEW);             String candidacyIDString= (String) request.getParameter("objectCode");             Integer candidacyID;             if (candidacyIDString == null)                 throw new FenixActionException(mapping.findForward("invalidQueryString"));             try             {                 candidacyID= new Integer(candidacyIDString);             }             catch (Exception ex)             {                 throw new FenixActionException(mapping.findForward("invalidQueryString"));             }             InfoCandidacy candidacy= null;             InfoStudent student = null;             InfoCurricularCourse curricularCourse = null;             InfoTheme theme = null;             InfoModality modality = null;                         String motivation = null;             InfoSeminary seminary = null;             List casesChoices = null;             List cases = new LinkedList();                                       ActionForward destiny= null;             try             {                 Object[] argsReadCandidacy= { candidacyID };                          GestorServicos gestor= GestorServicos.manager();                 candidacy= (InfoCandidacy) gestor.executar(userView, "Seminaries.GetCandidacyById", argsReadCandidacy);                                  //                 //                 Object[] argsReadStudent= { candidacy.getStudentIdInternal() };                                Object[] argsReadCurricularCourse= { candidacy.getCurricularCourseIdInternal() };                 Object[] argsReadTheme= { candidacy.getThemeIdInternal() };                 Object[] argsReadModality= { candidacy.getModalityIdInternal() };                 Object[] argsReadSeminary= { candidacy.getSeminaryIdInternal() };                                                   student = (InfoStudent) gestor.executar(userView, "student.ReadStudentById", argsReadStudent);                 curricularCourse = (InfoCurricularCourse)((SiteView) gestor.executar(userView, "ReadCurricularCourseByOIdService",argsReadCurricularCourse )).getComponent();                 theme = (InfoTheme) gestor.executar(userView, "Seminaries.GetThemeById",argsReadTheme );                 modality = (InfoModality) gestor.executar(userView, "Seminaries.GetModalityById",argsReadModality );                 seminary = (InfoSeminary) gestor.executar(userView, "Seminaries.GetSeminary",argsReadSeminary );                 motivation = candidacy.getMotivation();                 casesChoices = candidacy.getCaseStudyChoices();                                  //                 for (Iterator iterator= casesChoices.iterator(); iterator.hasNext();)				{					InfoCaseStudyChoice choice= (InfoCaseStudyChoice) iterator.next();                    Object[] argsReadCaseStudy= { choice.getCaseStudyIdInternal() };                    InfoCaseStudy infoCaseStudy = (InfoCaseStudy) gestor.executar(userView, "Seminaries.GetCaseStudyById", argsReadCaseStudy);                    System.out.println("Vou espetar isto " + infoCaseStudy);                    cases.add(infoCaseStudy);                    				}                //                System.out.println ("Os casos sao " + cases);                System.out.println("O estudante e " + student);                System.out.println("A disciplina e " + curricularCourse);                System.out.println ("O tema e " + theme);                System.out.println ("A motivacao e " + motivation);                System.out.println ("A modalidade e " + modality);                System.out.println ("O seminario e " + seminary);                System.out.println ("As escolhas dos casos sao " + casesChoices);                                              }             catch (Exception e)             {                 throw new FenixActionException();             }                                       destiny= mapping.findForward("showCandidacyDetails");             request.setAttribute("cases",cases);             request.setAttribute("student",student);             request.setAttribute("curricularCourse",curricularCourse);             request.setAttribute("theme",theme);             request.setAttribute("motivation",motivation);             request.setAttribute("seminary",seminary);                           request.setAttribute("modality",modality);             return destiny;         }