%@ include file="/shared/initBeans.inc" %>
<%@ page language="Java" import="kotkabeans.*,kakibeans.*,java.util.*,java.net.*"
session="true" autoFlush="true" isThreadSafe="true"
isErrorPage="false" errorPage="/shared/showError.jsp" %>
<%
/*****************************************************************************
* PAGE DESCRIPTION
******************************************************************************
*
* NAME: testStudyPlan
* LANGUAGE: JSP
* DATE: 27.4.2004
* AUTHOR: Sami Kosonen, Jyväskylän yliopisto
*
******************************************************************************
* COPYRIGHT (C) KUIKKA team
* Limited rights granted. Please refer to license
*****************************************************************************/
/*****************************************************************************
* UPDATES
******************************************************************************
*
*
*****************************************************************************/
pageContext.setAttribute("checkMethod", "GUEST");
%>
<%@ include file="/shared/userCheck.inc" %>
<% //This block of code will be in almost every page where it is necessary to
//use studyPlan -class.
//If studyPlan is in session, read it from there. Else, create new
//according to the planID in request.
StudyPlan studyPlan = null;
try {
studyPlan = StudyPlan.getInstance(request, user);
} catch (Exception ex) {
error.addError(ex.getMessage());
}
%>
<%@ include file="/shared/header.inc" %>
testStudyPlan
<%@ include file="/shared/showErrorBlock.code" %>
<%
if (studyPlan != null) {
%>
<%=studyPlan.getName()%>
<%
}
%>
<%@ include file="/shared/footer.inc" %>