daily pastebin goal
33%
SHARE
TWEET

Untitled

a guest Jul 12th, 2018 62 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. try {
  2.             Object ru = engine.eval("Packages.ru");
  3.             engine.getBindings(ScriptContext.ENGINE_SCOPE).put("ru", ru);
  4.            
  5.             for(String cl: classesToLoad)
  6.             {
  7.                 Object o = engine.eval("ru.sbtc.sitebuilder." + cl);
  8.                 engine.getBindings(ScriptContext.ENGINE_SCOPE).put(cl, o);
  9.             }
  10.         } catch(ScriptException se) {
  11.             throw new RuntimeException(se);
  12.         }
  13.  
  14.  
  15. after that
  16. CommonHelper.getSiteGlobalParameter == nothing!
  17.  
  18. ru.sbtc.sitebuilder.CommonHelper.getSiteGlobalParameter == "java.lang.String getSiteGlobalParameter(java.lang.String)"
  19.  
  20. while both are
  21. "class ru.sbtc.sitebuilder.CommonHelper"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top