Subversion Repositories bacoAlunos

Rev

Rev 1778 | Rev 1782 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1778 Rev 1779
Line 18... Line 18...
18
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
18
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
19
<%
19
<%
20
    AbstractDao.getCurrentSession().beginTransaction();
20
    AbstractDao.getCurrentSession().beginTransaction();
21
 
21
 
22
    ArrayList<CourseDepartment> departments = (ArrayList<CourseDepartment>) DaoFactory.getCourseDepartmentDaoImpl().findAll();
22
    ArrayList<CourseDepartment> departments = (ArrayList<CourseDepartment>) DaoFactory.getCourseDepartmentDaoImpl().findAll();
23
    String jsonArrayDepartments = CourseDepartmentImpl.getJson(departments);
23
    String jsonArrayDepartments = CourseDepartmentImpl.toJson(departments);
24
 
24
 
25
    ArrayList<CourseSchool> schools = (ArrayList<CourseSchool>) DaoFactory.getCourseSchoolDaoImpl().findAll();
25
    ArrayList<CourseSchool> schools = (ArrayList<CourseSchool>) DaoFactory.getCourseSchoolDaoImpl().findAll();
26
    String jsonArraySchools = CourseSchoolImpl.getJson(schools);
26
    String jsonArraySchools = CourseSchoolImpl.toJson(schools);
27
 
27
 
28
 
28
 
29
    request.setAttribute("jsonArrayDepartments",jsonArrayDepartments);
29
    request.setAttribute("jsonArrayDepartments",jsonArrayDepartments);
30
    request.setAttribute("departments",departments);
30
    request.setAttribute("departments",departments);
31
 
31