Including in a JSP page
From Adult Web Scripts Wiki
Since JSP can't obviously include PHP pages directly, one way is to have a cron job that creates a static html file containing the data you need.
This is some very simple code to output a webcams grid of 1 row and 6 columns using the smarty template your_webcam_grid_template.tpl of models who are online.
<?php require_once('/the/full/path/to/zestoi/config.php'); zestoi('webcams', 'rows=1&cols=6&template=your_webcam_grid_template.tpl' . '&status=!offline&print=1'); ?>
Save that code as makegrid.php and then you need to run this cron right after the zestoi webcams one - so combine them like this in your crontab to replace the webcams cron you had there before:
*/5 * * * * cd /path/to/zestoi/bin && php cron.php -m webcams && \
php /path/to/makegrid.php > /path/to/webroot.html
This will then create /path/to/webroot.html that you can include in your jsp
