%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"
import="java.util.*"
import="javax.servlet.http.HttpServletRequest"
import="com.tootsville.user.*"
import="org.starhope.appius.user.*"
import="org.starhope.appius.mb.Messages"
import="org.starhope.appius.except.*"
import="org.starhope.appius.messaging.*"
import="org.starhope.appius.types.AgeBracket"
import="com.tootsville.WebUtil"
%><%
//---------- Universal Declarations: Place this on every page.
/**
* Parent/User object. On myAccount this should be declared User and on parent this should be declared Parent
*/
Person sessionUser=null;
/**
* Error message list
*/
HashMap storeValues = new HashMap ();
boolean valuesStored = false;
if (null!=null) {
storeValues = (HashMap ) null;
valuesStored = true;
System.err.println("Recovering inputted fields" + storeValues.toString());
}
//----------- Verify the session and create a User or Parent Object
//----------- This should be placed on any of the 'logged in' sections on the website.
if (null!=session.getAttribute("sUserID") && null!=session.getAttribute("sUserPassword")
&& null!=session.getAttribute("sUserType")) {
System.err.println("Session exists");
String userID=session.getAttribute("sUserID").toString();
String userPassword=session.getAttribute("sUserPassword").toString();
String userType=session.getAttribute("sUserType").toString();
if (sess.getVisitorRole()==VisitorRole.self) {
System.err.println("Session is a user");
sessionUser=(User)WebUtil.verifyUserLogin(userID, userPassword);
} else if (sess.getVisitorRole()==VisitorRole.parent) {
System.err.println("Session is a parent");
sessionUser=(Parent)WebUtil.verifyParentLogin(userID, userPassword);
}
}
%>
Become A Member - $5.95 Membership - $29.95 Membership - $57.95 Membership
Join The Herd and Become a V.I.T. member for exclusive access to Tootally Cool Features.
<% if (valuesStored) session.removeAttribute("storeValues"); %>