Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>1) Most web hosting sites offer <em>some</em> provision for JSP/Servlets (e.g. Tomcat). Even the least expensive web site hosting services. So looking for another provider isn't necessarily a bad idea.</p> <p>2) Java code can't talk directly to PHP code, and PHP code can't directly talk to Java code. </p> <p>3) HOWEVER: the same web server can be configured to run both PHP/Apache and Tomcat. For example:</p> <ul> <li><a href="http://robjames.name/2010/01/29/configure-apache-to-run-tomcat-and-php-2/" rel="nofollow">http://robjames.name/2010/01/29/configure-apache-to-run-tomcat-and-php-2/</a></li> </ul> <p>4) The same <em>server</em> can <em>easily</em> support both PHP/Apache and Tomcat as separate <em>services</em>. In other words, the same host (e.g. www.myserver.com) can easily run Apache/PHP (e.g. <a href="http://www.myserver.com:80" rel="nofollow">http://www.myserver.com:80</a>) and Tomcat (e.g. <a href="http://www.myserver.com:8080" rel="nofollow">http://www.myserver.com:8080</a>) concurrently. This is a very common configuration.</p> <p>5) Do <em>not</em> look at any "translators". Even if you find a tool that claims to be able to do it, converting from PHP to Java, or Java to PHP, is probably going to me more trouble than it's worth.</p> <p>6) Unless there's a <em>lot</em> of code, I wouldn't really consider Web services (or Ajax) either. </p> <p>7) Just find a provider who supports Apache/PHP, Tomcat and your database of choice; create the "main page" on whichever one you feel most comfortable with, and modify your PHP and your JSP pages to rely on CSS to insure both have a consistent look and feel.</p> <p>This approach is the easiest ... and it <em>might</em> just be all you need!</p> <p>Good luck</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload