From b57d5709804b698493210fedf5a9cf4648ec38ef Mon Sep 17 00:00:00 2001
From: Roger Feese <rfeese@unl.edu>
Date: Tue, 8 Mar 2011 15:17:51 +0000
Subject: [PATCH] Removed some unused code and added page tag to the included
 form.

---
 conf/bb-manifest.xml        |  2 +-
 web/module/migrate_form.jsp |  1 +
 web/module/view.jsp         | 16 ----------------
 3 files changed, 2 insertions(+), 17 deletions(-)

diff --git a/conf/bb-manifest.xml b/conf/bb-manifest.xml
index e690343..93ad7ff 100644
--- a/conf/bb-manifest.xml
+++ b/conf/bb-manifest.xml
@@ -4,7 +4,7 @@
 		<name value="Courses to Migrate Module"/>
 		<handle value="crs_migrate_bb"/>
 		<description value="Displays a list of courses the user is Instructing and allows them to designate the ones to be migrated to the new server."/>
-		<version value="0.2.3"/>
+		<version value="0.2.4"/>
 
 		<requires>
 			<bbversion value="8.0.0"/>
diff --git a/web/module/migrate_form.jsp b/web/module/migrate_form.jsp
index 10f8311..9e21650 100644
--- a/web/module/migrate_form.jsp
+++ b/web/module/migrate_form.jsp
@@ -1,3 +1,4 @@
+<%@ page language="java" contentType="text/html; charset=UTF-8" isELIgnored="false" %>
 <%@ page import="java.io.PrintWriter" %>
 <%@ page import="java.sql.Connection" %>
 
diff --git a/web/module/view.jsp b/web/module/view.jsp
index a12a59c..fd0dc04 100644
--- a/web/module/view.jsp
+++ b/web/module/view.jsp
@@ -18,24 +18,8 @@
 
 <bbData:context id="ctx">
 <%
-BbList.Iterator coursesInstructingIterator = null;
-
-ConnectionManager connectionManager = ConnectionManager.getDefaultInstance();
-Connection dbConnection = connectionManager.getConnection();
-try{
-	CourseDbLoader cLoader = (CourseDbLoader) CourseDbLoader.Default.getInstance();
-	BbList coursesInstructing = cLoader.loadByUserIdAndCourseMembershipRole(ctx.getUser().getId(), CourseMembership.Role.INSTRUCTOR, dbConnection);
-	coursesInstructingIterator = coursesInstructing.getFilteringIterator();
-}
-catch(Exception e){
-	e.printStackTrace(new PrintWriter(out));
-}
-
-dbConnection.close();
-
 //uri
 String proc_uri = PlugInUtil.getUri("unl", "crs_migrate_bb", "module/proc_migrate_form.jsp");
-//pageContext.setAttribute("courses", coursesInstructingIterator);
 %>
 <p>Select the courses that should be migrated to the new Blackboard server and click the button below. Migrations will be scheduled to occur overnight. Once a course has been migrated, it will be indicated in list.</p>
 <form id="unl-crs_migrate_bb-form" method="POST" action="<%= proc_uri %>">
-- 
GitLab