Announcement Announcement Module
Collapse
No announcement yet.
How to access the applicationContext object inside a inline-script? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to access the applicationContext object inside a inline-script?

    Hi there,

    I tried this, and it didn't print any variables.

    Code:
    <lang:groovy id="testBean">
    	    <lang:inline-script>
    			binding.variables.each {k,v -> println "$k = $v"}
    	    </lang:inline-script>
    	</lang:groovy>
    Is there way I can access to the instance of the "applicationContext/beanFactory" where the script is defined?

    Thanks,
Working...
X