[sword-svn] r354 - trunk/webapp

refdoc at www.crosswire.org refdoc at www.crosswire.org
Thu Nov 13 08:54:37 MST 2008


Author: refdoc
Date: 2008-11-13 08:54:36 -0700 (Thu, 13 Nov 2008)
New Revision: 354

Modified:
   trunk/webapp/init.jsp
Log:
a default daily devotion can be chosen in swordweb.properties



Modified: trunk/webapp/init.jsp
===================================================================
--- trunk/webapp/init.jsp	2008-11-12 22:05:53 UTC (rev 353)
+++ trunk/webapp/init.jsp	2008-11-13 15:54:36 UTC (rev 354)
@@ -33,7 +33,7 @@
 	static Vector linkName = null;
 	static Vector linkAddress = null;
 	static String metaContent = null;
-
+	static String defaultDevo = null;
 %>
 
 <%
@@ -50,10 +50,11 @@
 			}
 			catch (Exception e) { e.printStackTrace(); }
 			defaultBible = swordWebConfig.getProperty("defaultBible", "NASB");
-			defaultLang  = swordWebConfig.getProperty("defaultLang", "en_US");
+			defaultDevo = swordWebConfig.getProperty("defaultDevo","DBD");
 			defaultStyle = swordWebConfig.getProperty("defaultStyle", "Washed Out");
-
+	
  			
+			defaultLang  = swordWebConfig.getProperty("defaultLang", "en_US");
 			offeredLanguages = new Vector();
 			String languages = swordWebConfig.getProperty("offeredLanguages", "en_US");
 			String[] language = languages.split(" ");
@@ -400,6 +401,7 @@
 	session.setAttribute("showTabs", showTabs);
 	session.setAttribute("lang", appLang);
 	session.setAttribute("meta", metaContent);
+	session.setAttribute("ActiveDevo",defaultDevo);
 
 	mgr.setJavascript(!"Off".equalsIgnoreCase(javascript));
 	mgr.setGlobalOption("Headings", ("Off".equalsIgnoreCase(headings)) ? "Off":"On");




More information about the sword-cvs mailing list