I wish to include JSPs include files which contain java code in a PHP template. The two includes in question are a header file, and a footer file. Anyone any experience of doing this? We are considering just doing a HTTP request to grab the resulting HTML from the JSP files independantly, but aren’t sure if there will be slight performance issues with doing so.
Is there any better solution using some of the tools within Apache to perform this?
If you JSP page echos a header, body structure, you’ll need to strip it out. You can do that from the JSP side or PHP.
That’s disabled on some systems so you might need to use cURL (it also allows you to post back which you might need to do if you’re playing with forms).