<%@ include file="init.jsp" %> <%@ page import="java.text.SimpleDateFormat" %> <%@ page import="java.util.Date" %> <% String resetModule = request.getParameter("mod"); if (resetModule != null) { session.setAttribute("ActiveDevo", resetModule); } String activeDevoName = (String) session.getAttribute("ActiveDevo"); SWModule activeDevo = mgr.getModuleByName((activeDevoName == null) ? "DBD" : activeDevoName); SimpleDateFormat formatter; %>

Daily Devotionals:

    <% for (int i = 0; i < modInfo.length; i++) { SWModule module = mgr.getModuleByName(modInfo[i].name); if ((SwordOrb.DAILYDEVOS.equals(modInfo[i].category)) || (SwordOrb.DAILYDEVOS.equals(module.getConfigEntry("Category")))) { %>
  • "><%= module.getDescription().replaceAll("&", "&") %>
  • <% } } formatter = new SimpleDateFormat("MM.dd"); activeDevo.setKeyText(formatter.format(new Date())); %>
<% formatter = new SimpleDateFormat("EEEE, MMM dd"); %>

Today's Devotion (<%= formatter.format(new Date()) %>)

<%= activeDevo.getDescription().replaceAll("&", "&") + " (" + activeDevo.getName() + ")" %>

<%= activeDevo.getRenderText() %>