diff --git a/src/helma/framework/core/RequestEvaluator.java b/src/helma/framework/core/RequestEvaluator.java index 306c4bf6..3c825519 100644 --- a/src/helma/framework/core/RequestEvaluator.java +++ b/src/helma/framework/core/RequestEvaluator.java @@ -46,10 +46,11 @@ public class RequestEvaluator implements Runnable { Object result; Exception exception; protected ArrayPrototype reqPath; - private ESRequestData reqData; + private ESMapWrapper reqData; // vars for FESI EcmaScript support public Evaluator evaluator; + public ObjectPrototype esObjectPrototype; public ObjectPrototype esNodePrototype; public ObjectPrototype esUserPrototype; @@ -118,7 +119,7 @@ public class RequestEvaluator implements Runnable { appnode = new ESAppNode (app.appnode, this); global.putHiddenProperty ("app", appnode); reqPath = new ArrayPrototype (evaluator.getArrayPrototype(), evaluator); - reqData = new ESRequestData (this); + reqData = new ESMapWrapper (this); } catch (Exception e) { System.err.println("Cannot initialize interpreter"); @@ -199,7 +200,7 @@ public class RequestEvaluator implements Runnable { global.putHiddenProperty ("path", reqPath); global.putHiddenProperty ("app", appnode); // set and mount the request data object - reqData.setData (req.getReqData()); + reqData.setData (req.getRequestData()); req.data = reqData; try { @@ -662,7 +663,12 @@ public class RequestEvaluator implements Runnable { eso = getElementWrapper (obj); ESValue[] esv = args == null ? new ESValue[0] : new ESValue[args.length]; for (int i=0; i