% /* Java Header section. Define import libraries, Module beans.*/ %>
<%@ page import="com.compuflex.framework.utility.*,
com.compuflex.framework.xmldatastore.*,
com.compuflex.framework.gui.*"
errorPage="fwErrorReporter.jsp" %>
<%
/* Get the instance of the Module object for the current Module.*/
String moduleName = "genKfrent";
/* Get the module.*/
GenericModule module = (GenericModule)moduleController.getModule(session, moduleName);
/* Get the data store instance associated with the Module.*/
XmlDataStore xmlds = module.getXmlDataStore();
// get the username from the session
String username = (String)session.getValue("username");
String secureKey = xmlds.getColumnValue("dsLogon", "SECURITY_KEY");
// if null, security breach!
if ((username != null) && (username != ""))
{
if (secureKey.equals("5"))
{
response.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY);
response.setHeader("Location", "welcomeCleaningCrew.jsp");
}
else if (secureKey.equals("6"))
{
response.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY);
response.setHeader("Location", "https://localhost:8443/KeysForRent/reservationAcceptance.jsp");
}
else
{
response.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY);
response.setHeader("Location", "Welcome.jsp");
}
}
/* Get an instance of the Common DataStore.*/
XmlDataStore xmldsCommon = (XmlDataStore)module.getCacheObject("fwCommonDataStore");
/* Process the module.*/
module.processModule(request);
%>
Online Reservations, Property Management, Vacation Rentals, Rental Properties, and more at KeysForRent.com......vacation, holiday, vacation, travel, vacation, condo, b&b, house, townhouse, Disney, real estate