You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by ni...@apache.org on 2005/09/16 01:08:05 UTC

svn commit: r289339 - /struts/core/trunk/src/java/org/apache/struts/action/ActionServlet.java

Author: niallp
Date: Thu Sep 15 16:07:54 2005
New Revision: 289339

URL: http://svn.apache.org/viewcvs?rev=289339&view=rev
Log:
Fix bug with the module prefix so that it includes the leading "/" - looks to me like modules haven't been working for four months (since r170184)?

Modified:
    struts/core/trunk/src/java/org/apache/struts/action/ActionServlet.java

Modified: struts/core/trunk/src/java/org/apache/struts/action/ActionServlet.java
URL: http://svn.apache.org/viewcvs/struts/core/trunk/src/java/org/apache/struts/action/ActionServlet.java?rev=289339&r1=289338&r2=289339&view=diff
==============================================================================
--- struts/core/trunk/src/java/org/apache/struts/action/ActionServlet.java (original)
+++ struts/core/trunk/src/java/org/apache/struts/action/ActionServlet.java Thu Sep 15 16:07:54 2005
@@ -1,7 +1,7 @@
 /*
  * $Id$
  *
- * Copyright 2000-2004 The Apache Software Foundation.
+ * Copyright 2000-2005 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -324,7 +324,7 @@
      */
     public void init() throws ServletException {
         final String configPrefix = "config/";
-        final int configPrefixLength = configPrefix.length();
+        final int configPrefixLength = configPrefix.length() - 1;
 
         // Wraps the entire initialization in a try/catch to better handle
         // unexpected exceptions and errors to provide better feedback



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org