Calling java servlets using python
Wayne Pierce
wayne at mishre.com
Sun Mar 3 23:34:11 EST 2002
Gerhard Häring wrote:
> Le 04/03/02 à 00:29, gopesh_sharma écrivit:
>
>>Dear All:
>>
>>Please let me know how to call java servlets using python?
>>
>
> You need to be more specific what exactly you want to accomplish.
>
> Python is the client, the Java servlet is the server: use urllib/
> urllib2.
Not __really__, servlets are just code running on the server, but they
aren't the server themselves. Think of them as souped-up CGI scripts,
without the forking penalty (except on the first request). You can do
similar things in straight Python with many of the application servers
like Zope or Webware, or you could use Jython.
The most direct way that I know of would be Jython, a good book to
pickup if you are working with Java and (J|P)ython, or just want to
learn Jython, is _Jython_for_Java_Programmers_ . The first part is an
intro to Jython and the rest is various ways to call one from the other
and integration; including servlets (pages 368-371).
I've seen reference to a way to call Java from Python, but I've never
used it...and I don't know where you can download it from...but it is
out there...somewhere...I think...maybe.
Wayne
--
Wayne Pierce
web: http://www.mishre.com
email: wayne at mishre.com
"What you need to know."
More information about the Python-list
mailing list