Convert from JAVA/JSP to Python

Thread Solved

Join Date: Mar 2006
Posts: 2
Reputation: csaha is an unknown quantity at this point 
Solved Threads: 0
csaha's Avatar
csaha csaha is offline Offline
Newbie Poster

Convert from JAVA/JSP to Python

 
0
  #1
Mar 21st, 2006
Hi Python Experts

I need to convert a code written on JAVA/JSP (Java Tags are also there inside JSP) to PYTHON.

I have OK kind of knowledge in PYTHON, but dont have a muck knowledge in JAVA/JSP.

Any idea how to approach? I am having tough time to achieve this

Thanks in advance to all
C Saha
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 3,959
Reputation: vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice 
Solved Threads: 917
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
DaniWeb's Hypocrite

Re: Convert from JAVA/JSP to Python

 
0
  #2
Mar 21st, 2006
A line by line translation from Java to Python is almost impossible. Java is simply too cumbersome. It is usually best to look at what the Java app does and then start new with Python.

Here is a small side by side comparison of Java and Python:
http://www.ferg.org/projects/python_...e-by-side.html
May 'the Google' be with you!
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 146
Reputation: G-Do is an unknown quantity at this point 
Solved Threads: 28
G-Do's Avatar
G-Do G-Do is offline Offline
Junior Poster

Re: Convert from JAVA/JSP to Python

 
0
  #3
Mar 22nd, 2006
You are using Apache to serve content, right? If that's the case, the Mod_python module (an Apache module, not a Python module) provides PSP (Python Server Pages) functionality - just what you'd need to replace your JSPs. You can get more information on this platform by following these links:

Basic PSP tutorial

Official PSP documentation

The Mod_python site

As for a line-by-line Java-to-Python converter? I think you might be out of luck on that one. Your best bet is to learn PSP and the basics of inline programming (if you don't know them already) and then get help for the JSP stuff. I used to do a fair amount of JSP programming, so if you have specific questions you can try me or you can ask the people in the Java or JSP forums, who are bound to be much more knowledgeable.
Vi veri veniversum vivus vici
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Python Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC