From: <php...@li...> - 2007-01-04 22:14:32
|
Hi James, > I had thought since the JavaBridge *was* running > under Tomcat that I had > access to everything a Servlet would as well. Only if you access it through the servlet. Just direct your browser to port 8080 or set up mod_jk to forward everything to Tomcat. > - but now I'm less certain I understand the exact > relationship between PHP, > a Java call, and Tomcat. Well it's quite simple. If you call http://localhost:8080/JavaBridge/sessionSharing.jsp tomcat creates a servlet from the JSP file and i nvokes it. For PHP requests this is similar: http://localhost:8080/JavaBridge/sessionSharing.php invokes a servlet which creates the HTML pages and then delegates to PHP to fill in the content. If you call http://localhost/sessionSharing.php then Apache (or IIS) renders and returns the HTML page. Tomcat doesn't even see this request. > I'm trying to use a set of Java classes that were > designed to run as a > Servlet. (I want to use PHP to write the front-end > pages and Java to do the > "heavy lifting" in the back.) > > My final call to one of the class methods is > $exportControl->processHttpdRequest($req, $resp, > $servlet, null) This shouldn't be a problem. Just replace the JSP logic with PHP and you're done. Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |