[Tutor] java talking python

Danny Yoo dyoo@hkn.eecs.berkeley.edu
Fri Feb 14 10:54:02 2003


On Fri, 14 Feb 2003, siddharth karandikar wrote:

> i see that its possible to write classes in python, which can be used as
> an appication's business logic from other python code.
>
> is it possible to use those classes defined in Python from Java classes
> ??
>
> is webapp development possible in python ??

Hi Siddharth,

Yes; the Jython project aims to provide an implementation of Python in
Java, with the benefit that Jython programs can take full advantage of the
gargantuan Java library.


Have you bumped into Useless Python yet?  Useless Python contains a
collection of tutorials, and one of them shows a sample Jython program
that uses Java's "Swing" library:

    http://uselesspython.com/Jython_Swing_Basics.html

Take a look: you'll be pleasantly surprised, I think.  *grin*


> can webapps written using java, servlets, jsp etc. can be replaced with
> python code ??

Yes.  Oh, here's the link to Jython:

    http://jython.org/


Web development using Jython is a slightly specialised topic; many of us
on Tutor may not have as much experience with it as we'd like. If you're
interested in Jython and servlet development, you may want to ask
questions on the Jython-users mailing list:

    http://lists.sourceforge.net/lists/listinfo/jython-users


Good luck to you!