python + java for web development?

Gerhard Häring gerhard.haering at gmx.de
Sat Sep 14 21:45:27 EDT 2002


* eugene kim <eugene1977 at hotmail.com> [2002-09-15 08:36 +0000]:
> [...] since java passes objects , not just strings among servlets and
> jsps i'm wondering if it is possible to mix java and other language..

Did you check out Jython, yet? http://www.jython.org/

Jython is an alternative Python implementation that runs on a Java
Virtual Machine. Consequently, you can call Java class libraries from
Jython, and the other way round.

> how python can interact with these servlet/jsp..?

Jython can be used to write servlets and with some determination, you
can even use it as a language for JSPs [1].

Of course, CPython is very well suited for web development, too. I'd
even prefer it, since you don't have to touch Java, then ;-)

-- Gerhard

[1] That's a little hard, though, it involves using BSF and some tag
library from the Jakarta project, plus patching BSF to use Jython
instead of JPython, Jython's predecessor).




More information about the Python-list mailing list