<%@ page import="com.dragonsoft.tryapp.constants.TryConstants, com.dragonsoft.tryapp.webapp.sessions.TrySession, com.dragonsoft.tryapp.common.ActivityObj, com.dragonsoft.tryapp.common.AssignmentObj, com.dragonsoft.tryapp.common.CourseObj, com.dragonsoft.tryapp.sysinterface.DisplayWorker, java.util.List" %> <%@ taglib uri="/tags/struts-bean" prefix="bean" %> <%@ taglib uri="/tags/struts-html" prefix="html" %> <% TrySession trySession = (TrySession)request.getSession(). getAttribute( TryConstants.TRY_SESSION_OBJ ); if( trySession == null ) { trySession = new TrySession( request.getSession(), webAppUser ); request.getSession(). setAttribute( TryConstants.TRY_SESSION_OBJ, trySession ); } %> <%@ include file="/common/elements/defaultHeader.jsp" %>
Assignments Open For Submission


<% DisplayWorker displayWorker = new DisplayWorker(); CourseObj[] studentCourses = displayWorker.getStudentPerspective( trySession.getUserCredentials() ); for( int courseIndex = 0; courseIndex < studentCourses.length; courseIndex++ ) { CourseObj currentCourse = studentCourses[ courseIndex ]; %> <% List openAssignments = currentCourse.getOpenAssignments(); if( openAssignments.size() > 0 ) { for( int asgIndex = 0; asgIndex < openAssignments.size(); asgIndex++ ) { AssignmentObj cAsg = (AssignmentObj)openAssignments.get( asgIndex ); %> <% } } else { %> <% } %>
<%= currentCourse.getCourseName() %> (<%= currentCourse.getCourseNumber() %>)
<%= cAsg.getAssignmentName() %>
<% List activeActivities = cAsg.getActiveActivities(); for( int actIndex = 0; actIndex < activeActivities.size(); actIndex++ ) { ActivityObj cAct = (ActivityObj)activeActivities.get( actIndex ); %>
<%= cAct.getActivityName() %>
<% } %>
There are no assignments currently assigned for this course.


<% } %> <%@ include file="/common/elements/defaultFooter.jsp" %>