<%@ page session=false %> <%@ page import = "java.util.*" %> <%@ page import = "java.net.*" %> <%-- This is Java stuff to create a lookup table. As we test/develop with other sites, we add coding for them --%> <% Hashtable topsiteID = new Hashtable(); // build hashtable topsiteID.put("test", "teststory_top.jsp"); topsiteID.put("txcn", "txcnstory_top.jsp"); topsiteID.put("nwcn", "nwcnstory_top.jsp"); topsiteID.put("dallasnews","dallasnewsstory_top.jsp"); topsiteID.put("kmov","kmovstory_top.jsp"); topsiteID.put("krem","kremstory_top.jsp"); topsiteID.put("king5","king5story_top.jsp"); topsiteID.put("pe","pestory_top.jsp"); topsiteID.put("kgw","kgwstory_top.jsp"); topsiteID.put("kmsb","kmsbstory_top.jsp"); topsiteID.put("azfamily","azfamilystory_top.jsp"); topsiteID.put("ktvb","ktvbstory_top.jsp"); topsiteID.put("kskn","ksknstory_top.jsp"); topsiteID.put("whas","whasstory_top.jsp"); topsiteID.put("wwl","wwlstory_top.jsp"); topsiteID.put("khou","khoustory_top.jsp"); topsiteID.put("kvue","kvuestory_top.jsp"); topsiteID.put("mysanantonio","mysanantoniostory_top.jsp"); topsiteID.put("denton","dentonstory_top.jsp"); topsiteID.put("wvec","wvecstory_top.jsp"); topsiteID.put("nbc6","nbc6story_top.jsp"); topsiteID.put("projo","projostory_top.jsp"); topsiteID.put("wfaa","wfaastory_top.jsp"); topsiteID.put("arlington","arlingtonstory_top.jsp"); %> <% String rsiteid=""; Cookie cookies[] = request.getCookies(); Cookie cookie = null; if (cookies != null) { for (int i=0; i < cookies.length; ++i) { if (cookies[i].getName().equals("Siteid")) { cookie = cookies[i]; rsiteid = URLDecoder.decode(cookie.getValue()); break; } else {} } } if (rsiteid == "") rsiteid = "dallasnews"; String Thisisthetoptemplateid = (String)topsiteID.get(rsiteid); %> <%-- This JSP coding does a server-side include of the HTML which represents the top template --%> <%@ page session=false %> <%@ page import = "java.util.*" %> <%@ page import = "java.net.*" %> <%-- This is Java stuff to create a lookup table. As we test/develop with other sites, we add coding for them --%> <% Hashtable topsiteID = new Hashtable(); // build hashtable topsiteID.put("test", "teststory_bot.jsp"); topsiteID.put("txcn", "txcnstory_bot.jsp"); topsiteID.put("nwcn", "nwcnstory_bot.jsp"); topsiteID.put("dallasnews","dallasnewsstory_bot.jsp"); topsiteID.put("kmov","kmovstory_bot.jsp"); topsiteID.put("krem","kremstory_bot.jsp"); topsiteID.put("king5","king5story_bot.jsp"); topsiteID.put("pe","pestory_bot.jsp"); topsiteID.put("kgw","kgwstory_bot.jsp"); topsiteID.put("kmsb","kmsbstory_bot.jsp"); topsiteID.put("azfamily","azfamilystory_bot.jsp"); topsiteID.put("ktvb","ktvbstory_bot.jsp"); topsiteID.put("kskn","ksknstory_bot.jsp"); topsiteID.put("whas","whasstory_bot.jsp"); topsiteID.put("wwl","wwlstory_bot.jsp"); topsiteID.put("khou","khoustory_bot.jsp"); topsiteID.put("kvue","kvuestory_bot.jsp"); topsiteID.put("mysanantonio","mysanantoniostory_bot.jsp"); topsiteID.put("denton","dentonstory_bot.jsp"); topsiteID.put("wvec","wvecstory_bot.jsp"); topsiteID.put("nbc6","nbc6story_bot.jsp"); topsiteID.put("projo","projostory_bot.jsp"); topsiteID.put("wfaa","wfaastory_bot.jsp"); topsiteID.put("arlington","arlingtonstory_bot.jsp"); %> <% String rsiteid=""; Cookie cookies[] = request.getCookies(); Cookie cookie = null; if (cookies != null) { for (int i=0; i < cookies.length; ++i) { if (cookies[i].getName().equals("Siteid")) { cookie = cookies[i]; rsiteid = URLDecoder.decode(cookie.getValue()); break; } else {} } } if (rsiteid == "") rsiteid = "dallasnews"; String Thisisthetoptemplateid = (String)topsiteID.get(rsiteid); %> <%-- This JSP coding does a server-side include of the HTML which represents the top template --%>