Author: mrdon
Date: Sat Apr  1 09:29:20 2006
New Revision: 390701

URL: http://svn.apache.org/viewcvs?rev=390701&view=rev
Log:
Changing static file prefix to /struts

Modified:
    
incubator/webwork2/src/java/org/apache/struts/action2/dispatcher/FilterDispatcher.java

Modified: 
incubator/webwork2/src/java/org/apache/struts/action2/dispatcher/FilterDispatcher.java
URL: 
http://svn.apache.org/viewcvs/incubator/webwork2/src/java/org/apache/struts/action2/dispatcher/FilterDispatcher.java?rev=390701&r1=390700&r2=390701&view=diff
==============================================================================
--- 
incubator/webwork2/src/java/org/apache/struts/action2/dispatcher/FilterDispatcher.java
 (original)
+++ 
incubator/webwork2/src/java/org/apache/struts/action2/dispatcher/FilterDispatcher.java
 Sat Apr  1 09:29:20 2006
@@ -65,7 +65,7 @@
  * <p/> <b>Serving static content</b>
  *
  * <p/> This filter also serves common static content needed when using 
various parts of WebWork, such as JavaScript
- * files, CSS files, etc. It works by looking for requests to /webwork/*, and 
then mapping the value after "/webwork/"
+ * files, CSS files, etc. It works by looking for requests to /struts/*, and 
then mapping the value after "/struts/"
  * to common packages in WebWork and, optionally, in your class path. By 
default, the following packages are
  * automatically searched:
  *
@@ -77,7 +77,7 @@
  *
  * </ul>
  *
- * <p/> This means that you can simply request /webwork/xhtml/styles.css and 
the XHTML UI theme's default stylesheet
+ * <p/> This means that you can simply request /struts/xhtml/styles.css and 
the XHTML UI theme's default stylesheet
  * will be returned. Likewise, many of the AJAX UI components require various 
JavaScript files, which are found in the
  * org.apache.struts.action2.static package. If you wish to add additional 
packages to be searched, you can add a comma
  * separated (space, tab and new line will do as well) list in the filter init 
parameter named "packages". <b>Be
@@ -169,8 +169,8 @@
             }
 
             if 
("true".equals(Configuration.get(StrutsConstants.STRUTS_SERVE_STATIC_CONTENT)) 
-                    && resourcePath.startsWith("/webwork")) {
-                String name = resourcePath.substring("/webwork".length());
+                    && resourcePath.startsWith("/struts")) {
+                String name = resourcePath.substring("/struts".length());
                 findStaticResource(name, response);
             } else {
                 // this is a normal request, let it pass through



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to