From: Frank C. <fr...@ms...> - 2000-12-15 02:59:05
|
> I didn't mean to import the PythonInterpreter in the JSP code. I > actually was thinking about instances (no pun intended) where > writing a java class that imports PythonInterpreter acts as the > proxy for python files. In this case, import the java class in > the JSP, initialize PythonInterpreter in the java class, then use > the java class's interfaces to get at your python files. > So, how can I use execfile() method? PythonInterpreter interp = new PythonInterpreter(); ....... interp.execfile("test.py"); I cannot run it in the JSP framework, but it is normal in ordinary Java code. Frank chen |