<%-- Copyright (c) 2001 by George Ruthart All rights reserved. --%> <%@ page import="java.util.*" %> <%@ page import="org.apache.ecs.*" %> <%@ page import="org.apache.ecs.html.*" %> <%@ page import="net.ruthart.rdbms.*" %> <% String file2open = null; Enumeration fNames = request.getParameterNames(); if (fNames.hasMoreElements()) { file2open = "/" + ((String[])request.getParameterValues("ft"))[0]; } else { file2open = "/index1.html"; } LoginInfo li = new LoginInfo(getServletContext()); AuthInfo ai = li.getAuthInfo(request); net.ruthart.rdbms.TableInfo tblInfo = new net.ruthart.rdbms.TableInfo(); Vector readRole = new Vector(); readRole.addElement("super"); readRole.addElement("Admin"); readRole.addElement(null); readRole.addElement(null); readRole.addElement(null); readRole.addElement("member"); tblInfo.readSec = 125; tblInfo.readRole = readRole; tblInfo.xacTypeRole.put("readRole", readRole); boolean authed = false; try { authed = li.checkSec(tblInfo, null, 0, ai, "read", null); } catch (AuthenticationException ae) { ae.handleAuthError(getServletContext(), request, response); } ServletContext context = getServletContext(); if (authed) getServletContext().getRequestDispatcher( file2open ).forward( request, response ); //getServletContext().getRequestDispatcher( file2open ).forward( request, response ); %>