Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java in python? How about the other way round?

 
SoonAnn Lim
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Robert W Bill
Author
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jim and Bill.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic