webwork/src/main/webwork/action/factory PrefixActionFactoryProxy.java,1.12,1.13

[email protected] Fri, 28 Jun 2002 11:01:01 -0700
Newsgroups gmane.comp.java.webwork.cvs
Message-ID <[email protected]>
Update of /cvsroot/webwork/webwork/src/main/webwork/action/factory
In directory usw-pr-cvs1:/tmp/cvs-serv671

Modified Files:
	PrefixActionFactoryProxy.java 
Log Message:
added webwork prefix packages by default since they are 
required to support standard functionality. this prevents
the developer from adding these again if they override
the prefix property

Index: PrefixActionFactoryProxy.java
===================================================================
RCS file: /cvsroot/webwork/webwork/src/main/webwork/action/factory/PrefixActionFactoryProxy.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- PrefixActionFactoryProxy.java	15 Mar 2002 02:17:51 -0000	1.12
+++ PrefixActionFactoryProxy.java	28 Jun 2002 18:00:59 -0000	1.13
@@ -29,7 +29,7 @@
    extends ActionFactoryProxy
 {
    // Attributes ----------------------------------------------------
-   String actionPrefix ="webwork.action.test,webwork.action.standard";
+   static String actionPrefix ="webwork.action.test,webwork.action.standard";
    String[] actionPrefixes;
 
    Map actionNames = new Hashtable();
@@ -42,10 +42,10 @@
       // Get list of prefixes to try
       try
       {
-         actionPrefix = ((String)Configuration.getString("webwork.action.packages")).trim();
+         actionPrefix += ","+((String)Configuration.getString("webwork.action.packages")).trim();
       } catch (IllegalArgumentException e)
       {
-         Category.getInstance(this.getClass()).info("Using default action package prefixes:"+actionPrefix);
+         Category.getInstance(this.getClass()).info("Error loading action prefixes. Only using default prefixes:"+actionPrefix);
       }
 
       StringTokenizer tokens = new StringTokenizer(actionPrefix, ", ");




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Caffeinated soap. No kidding.
http://thinkgeek.com/sf