Re: java servlets, jsp and python
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
Re: java servlets, jsp and python
how to unsubscribe this mailing list?? On Tue, May 11, 2010 at 4:50 PM, Silvio Tschapke silvio.tscha...@googlemail.com wrote: 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
Re: java servlets, jsp and python
2010/5/11 anoop singh khimani anoopsinghkhim...@gmail.com: how to unsubscribe this mailing list?? http://tomcat.apache.org/lists.html#tomcat-users 1. Send a short e-mail to users-unsubscr...@tomcat.apache.org Make sure, that the mail has a subject and non-empty body, so that it is not rejected by spam filter. 2. A confirmation will be sent to you. You have to reply to it to complete the unsubscribe process. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: java servlets, jsp and python
org.python.util.PythonInterpreter.class is located in jython.jar http://www.jython.org/Project/download.html ping offline if you need further assistance, 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: Tue, 11 May 2010 13:20:02 +0200 Subject: Re: java servlets, jsp and python From: silvio.tscha...@googlemail.com To: users@tomcat.apache.org 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 _ Hotmail is redefining busy with tools for the New Busy. Get more from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2
Re: java servlets, jsp and python
On 11/05/2010 13:45, Martin Gainty wrote: ping offline if you need further assistance, No, don't do that. We keep things on-list, so others can benefit from the finding a solution. p 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: Tue, 11 May 2010 13:20:02 +0200 Subject: Re: java servlets, jsp and python From: silvio.tscha...@googlemail.com To: users@tomcat.apache.org 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 _ Hotmail is redefining busy with tools for the New Busy. Get more from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2 signature.asc Description: OpenPGP digital signature
Re: java servlets, jsp and python
Hello, Maybe you could google about Jython for some hint. On Wed, May 5, 2010 at 6:50 PM, Silvio Tschapke silvio.tscha...@googlemail.com wrote: 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! -- Sincerely yours and Best Regards, Xie Xiaodong
RE: java servlets, jsp and python
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