src/java/de/uapcore/lightpit/Constants.java

changeset 11
737ab27e37b3
parent 10
89e3e6e28b69
child 13
f4608ad6c947
--- a/src/java/de/uapcore/lightpit/Constants.java	Sat Dec 16 20:19:28 2017 +0100
+++ b/src/java/de/uapcore/lightpit/Constants.java	Sun Dec 17 01:45:28 2017 +0100
@@ -28,16 +28,33 @@
  */
 package de.uapcore.lightpit;
 
-import static de.uapcore.lightpit.Functions.fullyQualifiedName;
+import static de.uapcore.lightpit.Functions.fqn;
 
 /**
  * Contains all constants used by the this application.
  */
 public final class Constants {
-    public static final String JSP_PATH_PREFIX = "/WEB-INF/view/";
+    public static final String JSP_PATH_PREFIX = "/WEB-INF/jsp/";
+    
+    /**
+     * Key for the request attribute containing the class name of the currently dispatching module.
+     */
+    public static final String REQ_ATTR_MODULE_CLASSNAME = fqn(AbstractLightPITServlet.class, "moduleClassname");
     
-    public static final String REQ_ATTR_MENU = fullyQualifiedName(AbstractLightPITServlet.class, "mainMenu");
-    public static final String REQ_ATTR_PATH = fullyQualifiedName(AbstractLightPITServlet.class, "path");
+    /**
+     * Key for the request attribute containing the {@link LightPITModule} information of the currently dispatching module.
+     */
+    public static final String REQ_ATTR_MODULE_INFO = fqn(AbstractLightPITServlet.class, "moduleInfo");
+    
+    /**
+     * Key for the request attribute containing the menu list.
+     */
+    public static final String REQ_ATTR_MENU = fqn(AbstractLightPITServlet.class, "mainMenu");
+    
+    /**
+     * Key for the request attribute containing the full path information (servlet path + path info).
+     */
+    public static final String REQ_ATTR_PATH = fqn(AbstractLightPITServlet.class, "path");
     
     /**
      * This class is not instantiatable.

mercurial