Vipin,
I think this is going to depend to a large extent on your application's
particular needs. JSP is a very flexible framework, consisting of a basic
low-level structure, with a tag-library layer on top. There's a lot of tag
libraries to choose from, and the different approaches they take will make
different things easier.
MySQL connectivity shouldn't be a problem - there are JDBC drivers available
from http://www.mysql.com, and JSP tags for JDBC are the easiest thing to
find.
One thing you might want to look at in the interim is running PHP4 under the
Java Servlet SAPI. This is basically a Java Servlet, which can be installed
in the servlet engine of your choice, which passes HTTP requests on to a PHP
processor. So, for example, you can run the Tomcat servlet container from
the Apache-Jakarta project (http://jakarta.apache.org), alongside
Apache-JServ, and install PHP as a servlet under Tomcat. Requests for PHP
pages then are directed by Apache to Tomcat, and by Tomcat to PHP.
The interesting side-effect this has is that your PHP pages are executing in
a child-process of the Java Virtual Machine, which enables you to use the
PHP-Java object bindings. These let you access Java objects inside your PHP
pages as if they were PHP native objects. Great for binding a PHP front-end
onto a Java middle tier.
Since your PHP pages are running in the context of a servlet engine, you
also have access to things like the Java Servlet session objects. This means
you can share session data between PHP pages running on this server, and
Java Servlets or JSP pages sharing the same JVM.
If you get anywhere with this set up, be sure to let the list know how you
got on!!
Regards,
James
_______________
James Hart
Technical Architect
Wrox
-----Original Message-----
From: vipin krishnan [mailto:krishna_vipin@m...]
Sent: 04 September 2000 14:04
To: professional php
Subject: [pro_php] converting a php application into jsp
how do you convert a php application into a jsp.
what all the contraints you have to take care of
how do you connect the converted jsp application to mysql
---
Do you know what you want from this list? How would you provide programmers
with the solutions they need? If you have the answers, and are willing to
work in Birmingham (UK), then you could be a List Manager. Please send CVs
and a covering letter to listsupport@p... for further information.