I have searched for jython and implemented some examples how to access jython code from java classes (e.g. with the ObjectFactory Pattern). Everything works fine outside the server. But if I create a Dynamic Web Project to access jython code from a java servlet, eclipse cannot find the org.python.util.PythonInterpreter; within my Factory.java I tried to add jython.jar to the class path of the project but it doesn't work. Do I have to configure the tomcat server in a way that it can use jython?
On Wed, May 5, 2010 at 6:57 PM, Martin Gainty <mgai...@hotmail.com> wrote: > > you can implement a Jython (Python for Java) solution > http://www.jython.org/ > > Martin Gainty > ______________________________________________ > Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht > dient lediglich dem Austausch von Informationen und entfaltet keine > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le > destinataire prévu, nous te demandons avec bonté que pour satisfaire > informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie > de ceci est interdite. Ce message sert à l'information seulement et n'aura > pas n'importe quel effet légalement obligatoire. Étant donné que les email > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter > aucune responsabilité pour le contenu fourni. > > > > > > Date: Wed, 5 May 2010 18:50:40 +0200 > > Subject: java servlets, jsp and python > > From: silvio.tscha...@googlemail.com > > To: users@tomcat.apache.org > > > > Hi all, > > > > I am new to Web-Programming and maybe my question is trivial. I want to > > build a dynamic webpage and want to use a python script within a java > > servlet. > > Is this possible? > > I thought that it is only possible to run java code within a servlet. > > Maybe I havn't understood the architecture right. Could anybody explain > me > > how the web-container would call / interact with python? > > I haven't found this topic in the documentation. > > > > Cheers! > > _________________________________________________________________ > The New Busy is not the old busy. Search, chat and e-mail from your inbox. > > http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3