Does anyone have real experience in creating such a project? I would like to get away from questions about “is this a good idea or not,” but focus on possible solutions. I see one simple way - HTTP GET / POST + xml / json - and another elegant one - AJAX / DWR. As for the first - I understand that this is possible, but requires a lot of coding. Regarding the second method - is it possible to use the Java DWR mechanism with the PHP interface? Is the DWR language independent for the client side (since it uses only JavaScript)? Would it be a problem that the client page was generated by one web server (e.g. apache + php) and served on the server side by another (e.g. tomcat)? I suspect Tomcat will complain about the sessions. Can I fix this problem with cross-domain AJAX?Thank you in advance.Denis
If you want (as I suspect) to use PHP to build your web pages while the “business logic” is written in Java, I would suggest using PHP / Java Bridge (LGPL and MIT licenses)
Both Java and PHP are server technologies. Your front-end will be written using HTML, CSS and JavaScript - although you could use PHP (or JSP) templates to render parts of the interface.
If you use PHP as a "front-end", you will need to act as a proxy server, passing requests back to the Java web server.
, Java mod_perl '. naysayers - , Java /API-, , HTML, WAP, SMTP, SOAP ..
mod_perl XML-RPC. , . Java, Perl PHP JSON - /. , mod_perl ( PHP) JSON-RPC , .
, , .
, , , , .
"Java front-back" OSGi, ; Java , .
Source: https://habr.com/ru/post/1749214/More articles:Undefined after installing a new build xcode 3.2.3 - iphoneВ WCF лучше ли иметь несколько контрактов на работу или иметь только одну операцию с контрактом на полиморфные данные? - c#JAAS Custom Login Module - javaHow to combine filling a word in a list in a makefile - makefileWeb Design UI Initial Layout - Which Software to Use? - designsqlplus removes \ r \ n \ t from coil - oracleHow to make iPhone app compatible with iOS 4? - iphoneDisable adding item to collection - collectionsPython unlock value - pythonproblem with "select new Object ... join ... where" - javaAll Articles