944,126 Members | Top Members by Rank

Ad:
  • Python Discussion Thread
  • Marked Solved
  • Views: 9401
  • Python RSS
Mar 21st, 2006
0

Convert from JAVA/JSP to Python

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
csaha is offline Offline
2 posts
since Mar 2006
Mar 21st, 2006
0

Re: Convert from JAVA/JSP to Python

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
Moderator
Reputation Points: 1333
Solved Threads: 1404
DaniWeb's Hypocrite
vegaseat is offline Offline
5,792 posts
since Oct 2004
Mar 22nd, 2006
0

Re: Convert from JAVA/JSP to Python

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.
Reputation Points: 41
Solved Threads: 31
Junior Poster
G-Do is offline Offline
146 posts
since Jun 2005

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Python Forum Timeline: raw_input exception
Next Thread in Python Forum Timeline: Help with calculating a percent amount





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC