<% /* * Login.jsp 13/04/02 * * Copyright 2002 by George Ruthart, * 1955 Roy Ivor Crescent, Mississauga, Ontario, Canada L5L 3N7 * All rights reserved. * * This source code is the confidential and proprietary information * of George Ruthart ("Confidential Information"). You shall * not disclose this Confidential Information to any third parties * and shall not modify this code without the written permission * from George Ruthart as well as shall use the software only in * accordanc with the terms of the license agreement that * you entered into with George Ruthart. */ %> <%@ page import="org.apache.ecs.*" %> <%@ page import="java.util.*" %> <%@ page import="net.ruthart.rdbms.*" %> <%@ page import="org.apache.ecs.*" %> <%@ page import="org.apache.ecs.html.*" %> <%! String [] names; %> <% String message = "NOT LOGGED IN"; LoginInfo li = new LoginInfo(getServletContext()); AuthInfo ai = li.getAuthInfo(request); if (ai.authed) { Vector memInf = DbUtils.querySingleRow("concat(memb.firstName,' ',memb.lastname)","memb","memb.memberid='" + ai.memberId + "'",""); if (memInf.size() > 0) { message = "Logged in as: " + memInf.get(0); } } %> Tenant Info
<% out.println(message); %>