From: Jost B. <jos...@ya...> - 2005-11-22 17:50:15
|
Hi Christopher, > I have an extensive framework I'd like to migrate > from PHP to JAVA (at > least on the back-end), but don't want to start at > the very bottom. The examples folder now contains a java-server-faces example. If you use JSF as your framework, the code should work "as is". For other frameworks you need to write a custom ScriptEngine, ScriptContext and Context, please see the PhpFacesScriptContext, PhpFacesScriptContextManager, PhpFacesScriptEngine and PhpFacesContext classes for a template. > May I attack by bits and pieces using php_closure > and java_enclosure ? Yes. Basically you open a URLConnection to the php instance running in the frontend (Apache/IIS/Servlet Engine) which triggers the: java_context()->call(java_closure()); After that your java code can call the functions or methods in allocated PHP closure. > If so, where may I download the javax.scripts The script-api.jar is now in the unsupported folder, I will check in the source, too. The code was written and (C) by Sanka Samaranayake (sa...@op...), licensed under the Apache License. The source is now in the php-java-bridge/server/javax folder. A snapshot of the current Version 3 source code is available at: http://sourceforge.net/project/showfiles.php?group_id=117793&package_id=170256 I will check that code into our CVS as soon as possible, but currently the SF cvs service seems to be broken, it rejects everything I commit. In the meantime please use the source snapshot above. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |