Author: mrdon
Date: Sun Feb 20 18:16:21 2005
New Revision: 154607
URL: http://svn.apache.org/viewcvs?view=rev&rev=154607
Log:
* Fixed build error that snuck through
Modified:
struts/flow/trunk/src/java/org/apache/struts/flow/sugar/SugarWrapFactory.java
Modified:
struts/flow/trunk/src/java/org/apache/struts/flow/sugar/SugarWrapFactory.java
URL:
http://svn.apache.org/viewcvs/struts/flow/trunk/src/java/org/apache/struts/flow/sugar/SugarWrapFactory.java?view=diff&r1=154606&r2=154607
==============================================================================
---
struts/flow/trunk/src/java/org/apache/struts/flow/sugar/SugarWrapFactory.java
(original)
+++
struts/flow/trunk/src/java/org/apache/struts/flow/sugar/SugarWrapFactory.java
Sun Feb 20 18:16:21 2005
@@ -89,7 +89,7 @@
Scriptable wrap = null;
if (javaObject instanceof Map) {
- wrap = new ScriptableMap(scope, javaObject, staticType,
mapFuncPrefix);
+ wrap = new ScriptableMap(scope, javaObject, staticType,
mapFuncPrefix, map);
} else if (javaObject instanceof List) {
wrap = new ScriptableList(scope, javaObject, staticType, map);
} else {
@@ -124,12 +124,6 @@
// This must be done before scripts can be executed. Returns
// a scope object that we use in later calls.
Scriptable scope = cx.initStandardObjects();
-
- // Collect the arguments into a single string.
- String s = "";
- for (int i=0; i < args.length; i++) {
- s += args[i];
- }
// Now evaluate the string we've colected.
FileReader reader = new FileReader(args[0]);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]