cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <lgaw...@mobilebox.pl>
Subject Re: svn commit: r169150 - /cocoon/trunk/src/java/org/apache/cocoon/environment/TemplateObjectModelHelper.java
Date Wed, 25 May 2005 19:56:16 GMT
Christopher Oliver wrote:
> FYI it is not thread-safe to use a static rhino scope. Instead the 
> caller of the template should should pass this from his own session. I 
> think this same bug also exists in the CForms implemenation but I'm not 
> sure.
LOL. I based my implementation on CForms :)
Should we go like this then:

  Scriptable newScope = cx.newObject(sharedScope);
     newScope.setPrototype(sharedScope);
     newScope.setParentScope(null);

taken from:
http://www.mozilla.org/rhino/scopes.html

-- 
Leszek Gawron                                      lgawron@mobilebox.pl
Project Manager                                    MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

Mime
View raw message