PHP needs to interact with Java Library. Suggestions?
I have been creating a web page that is based on PHP/Smarty. I have recently came to a realization that the web page will need to interact with a Java library. My problem is that the interaction is too detailed to create an executable with the JAR, and I am not sure how to go about interacting with this library. Basically, I have a list of user input in a PHP/Smarty form, that needs to be used in this java library. Any suggestions on how to do this? This is what I am thinking, but it seems a little unconventional:
Present the form to the user, when the user submits, it passes to Tomcat, which deals with the POST data, and interacts with the JAR file.
Any other ideas? Thanks.
|