Update of /cvsroot/displaytag/display09/src/org/displaytag/util
In directory sc8-pr-cvs1:/tmp/cvs-serv3950/src/org/displaytag/util

Modified Files:
        DisplayPropertiesLoaderServlet.java 
Log Message:
improved javadocs

Index: DisplayPropertiesLoaderServlet.java
===================================================================
RCS file: 
/cvsroot/displaytag/display09/src/org/displaytag/util/DisplayPropertiesLoaderServlet.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** DisplayPropertiesLoaderServlet.java 21 Jun 2003 12:34:50 -0000      1.1
--- DisplayPropertiesLoaderServlet.java 17 Jul 2003 21:51:57 -0000      1.2
***************
*** 16,19 ****
--- 16,36 ----
   * (example: "WEB-INF/display.properties").</p>
   * <p>The original properties file is still loaded and used when any of the 
parameters is missing</p>
+  * <p>
+  * Sample Web.xml entry:
+  * </p>
+  * <pre>
+  *    &lt;servlet id="DisplayPropertiesLoaderServlet">
+  *            &lt;servlet-name>DisplayPropertiesLoaderServlet&lt;/servlet-name>
+  *            &lt;display-name>DisplayPropertiesLoaderServlet&lt;/display-name>
+  *            &lt;description>displaytag initialization servlet&lt;/description>
+  *            
&lt;servlet-class>org.displaytag.util.DisplayPropertiesLoaderServlet&lt;/servlet-class>
+  *            &lt;init-param>
+  *                    &lt;param-name>properties.filename&lt;/param-name>
+  *                    &lt;param-value>WEB-INF/display.properties&lt;/param-value>
+  *            &lt;/init-param>
+  *            &lt;load-on-startup>1&lt;/load-on-startup>
+  *    &lt;/servlet>
+  * </pre
+  * 
   * @author fgiust
   * @version $Revision$ ($Author$)
***************
*** 28,32 ****
  
        /**
!        * Field PROPERTIES_PARAMETER
         */
        private static final String PROPERTIES_PARAMETER= "properties.filename";
--- 45,49 ----
  
        /**
!        * name of the parameter containing the properties file path
         */
        private static final String PROPERTIES_PARAMETER= "properties.filename";
***************
*** 41,52 ****
        public void init(ServletConfig pServletConfig) throws ServletException
        {
!               
                super.init(pServletConfig);
!               
                // read the parameter
                String lFile= getInitParameter(PROPERTIES_PARAMETER);
  
                // debug parameter
!               mLog.debug("properties.filename=" + lFile);
  
                if (lFile != null)
--- 58,69 ----
        public void init(ServletConfig pServletConfig) throws ServletException
        {
! 
                super.init(pServletConfig);
! 
                // read the parameter
                String lFile= getInitParameter(PROPERTIES_PARAMETER);
  
                // debug parameter
!               mLog.debug(PROPERTIES_PARAMETER + "=" + lFile);
  
                if (lFile != null)
***************
*** 57,63 ****
                        String lFullPath= lPrefix + SystemUtils.FILE_SEPARATOR + lFile;
  
-                       // debug file name
-                       mLog.debug("file=" + lFile);
-                       
                        // set the user file
                        TableProperties.setPropertiesFilename(lFullPath);
--- 74,77 ----




-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to