index page now uses Constant values to facilitate testing
authormaxcooper <maxcooper>
Mon, 9 Jun 2003 12:05:17 +0000 (12:05 +0000)
committermaxcooper <maxcooper>
Mon, 9 Jun 2003 12:05:17 +0000 (12:05 +0000)
src/example/org/securityfilter/example/Constants.java
web/share/index.jsp

index 024ef14..1568297 100644 (file)
@@ -1,7 +1,7 @@
 /*
- * $Header: /cvsroot/securityfilter/securityfilter/src/example/org/securityfilter/example/Constants.java,v 1.1 2003/06/09 10:59:42 maxcooper Exp $
- * $Revision: 1.1 $
- * $Date: 2003/06/09 10:59:42 $
+ * $Header: /cvsroot/securityfilter/securityfilter/src/example/org/securityfilter/example/Constants.java,v 1.2 2003/06/09 12:05:17 maxcooper Exp $
+ * $Revision: 1.2 $
+ * $Date: 2003/06/09 12:05:17 $
  *
  * ====================================================================
  * The SecurityFilter Software License, Version 1.1
@@ -59,7 +59,7 @@ package org.securityfilter.example;
  * Constants - constants for the example applications to facilitate testing
  *
  * @author Max Cooper (max@maxcooper.com)
- * @version $Revision: 1.1 $ $Date: 2003/06/09 10:59:42 $
+ * @version $Revision: 1.2 $ $Date: 2003/06/09 12:05:17 $
  */
 public interface Constants {
 
@@ -69,6 +69,9 @@ public interface Constants {
    public static final String VALID_PASSWORD = "password";
    public static final String VALID_ROLE = "inthisrole";
 
+   // home page constants
+   public static final String HOME_TITLE = COMMON_TITLE_BASE + "Home";
+   
    // login form constants
    public static final String LOGIN_TITLE = COMMON_TITLE_BASE + "Login Page";
    public static final String LOGIN_FORM_ID = "login";
index 7ca65a0..55b7995 100644 (file)
@@ -1,10 +1,12 @@
+<%@ page import="org.securityfilter.example.Constants"%>
+
 <html>
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
-<title>SecurityFilter Example Application: Home</title>
+<title><%=Constants.HOME_TITLE%></title>
 </head>
 <body>
-<h1>SecurityFilter Example Application: Home</h1>
+<h1><%=Constants.HOME_TITLE%></h1>
 <%@include file="/menu.jsp" %>
 Welcome to the Security Filter example application. Use the menu above to navigate the site.
 </body>