<% /* * book_page.jsp 13/04/02 * * Copyright 2002 - 2006 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="java.util.*" %> <%@ page import="net.ruthart.rdbms.*" %> <%@ page import="org.apache.ecs.html.*" %> <% String target = request.getParameter("pg"); String pageRoot = request.getParameter("rt"); String mid = request.getParameter("mid"); if (pageRoot == null) pageRoot = ""; if (target == null) target = "citiesON"; LoginInfo li = new LoginInfo(getServletContext()); AuthInfo ai = li.getAuthInfo(request); String forwardUrl = null; if (mid != null && li.validUser(mid) ) { forwardUrl = "/" + pageRoot + target + "m.jsp"; } else { forwardUrl = target + ".jsp"; } System.out.println("FU = " + forwardUrl); //Have to use sendRedirect to send *.html (forward won't) response.sendRedirect(response.encodeRedirectURL(forwardUrl)); //System.out.println( "FwUrl" + forwardUrl + "URL: " + request.getRequestURL()); %>