*
The moose likes Jython/Python and the fly likes Java in python? How about the other way round? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Languages » Jython/Python
Bookmark "Java in python? How about the other way round?" Watch "Java in python? How about the other way round?" New topic
Author

Java in python? How about the other way round?

SoonAnn Lim
Ranch Hand

Joined: Jun 21, 2001
Posts: 155
Bill and All,
I look at some documentation at jython homepage but i don't see any example that allow you to use python code in Java. So does it mean you cannot implement servlet or jsp or any other java app?
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
Elsewhere I've pointed out that examples of calling Python from Java can be found here and here. I see that there's a class called PyServlet which seems to allow you to work with servlets in Jython. Never done it myself - but at least these are some places to start for you.


"I'm not back." - Bill Harding, Twister
Robert W Bill
Author
Greenhorn

Joined: Apr 08, 2002
Posts: 21
Jim beat me to the links, but I did want to point out that PyServlet is a great example of proper embedding of Jython as well as a great way to develop servlets.
SoonAnn Lim
Ranch Hand

Joined: Jun 21, 2001
Posts: 155
Thanks Jim and Bill.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java in python? How about the other way round?