These days I tried to replace the (almost exciting but mysterious) rhino by the uprising javax.script technology which would be included in the next big Java release (Mustang aka jdk1.6, available in ?late october 2006?).
So I went out and redesigned our application:
OK - I redesigned the app it kept it running!
The following workaround is not very suprising:
if ( typeof(foo) == ' undefined' )
The other point which isn`t suprising is what read in Sundararajan blog:
At this time I cannot estimate the effects, but it does not sound joyful: I assume, that the interpreted mode wont run as fast as the compiled/bytecode mode. With these two disadvantages I will continue the javax.script integration only if they are solved.
If anyone had solved the null problem - it would be great if you can send me the solution!