|
From: Dennis <mai...@ya...> - 2003-06-04 09:10:43
|
Hi Jython gurus, I have a set of data i.e. name value pair and I want to perform some operation on that data and get the result back eg. firstname, lastname data concat to become a name, email substring to break into mailname and domain and some complex stuff based on regexp. If I have a script that can perform these operations on the supplied data THE QUESTION IS HOW TO PASS DATA FROM JAVA PROGRAM TO THE PY SCRIPT AND GET THE RESULT BACK IN JAVA PROGRAM??? I know that PythonIntrepreter provides feature to run a py script using eval method and returns the result back to java program, but no example explains how to pass data to the script. Please guide me on this with some example. Thanks in Advance Dennis __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com |