| Author |
Executing Jython script from java and accessing resulting object
|
Kunal Sathe
Ranch Hand
Joined: Apr 08, 2005
Posts: 48
|
|
Hello All,
I am running a jython script from my java program and I would like to access the resulting value/object. The script returns a boolean value true/false, and I want to access the value as a java.lang.Class.Boolean object. Can someone guide me in the right direction?
Thanks in advance.
Kunal
|
 |
Steve Luke
Bartender
Joined: Jan 28, 2003
Posts: 3090
|
|
You might try:
As long as value is in the correct scope (not sure if it is).
Another thing to try would be to make the checkLastName() method return the true/false, then use interpreter.eval() to call the method and get the results. Something like this:
Note that I have no experience with Jython, but am just starting Python. So I could be way off...
|
Steve
|
 |
 |
|
|
subject: Executing Jython script from java and accessing resulting object
|
|
|