Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <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>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. COThat's a great point about the "code conversion" vaporware. Didn't Microsoft have a tool they released a while back that "converted" Java to C#. Everyone got all excited, then it came out; they pulled up the "converted" files, whole and massive chunks of code had been wholesale commented out? With the development and proliferation of transport systems and layers for data, you just work out a REST service and all the PHP and Rube Rails geeks are getting all in your business. We have a JIRA system and I had *VBA* grabbing data for reports.
      singulars
    2. COYou've only just suggested how to go about getting support for Apache and Tomcat, but nothing you said answers the question on how to create a channel of interaction between both systems. The reason why I suggested AJAX is this: there's no need for PHP to do the job that Java has done already. So, simply ask Java to give you a copy of the page it would have rendered if called directly by a user-agent, get it as a response and render it too. Finished - it's that easy.
      singulars
    3. COjQuery Ajax has the dataType property by which you can clearly specify how you wish to receive a response, and HTML is one of the options. But he doesn't even have to tweak that since Ajax can intelligently guess the nature of the data and return it as expected. The only issue that may exist in this method is that it may introduce some latency.
      singulars
 

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