1 function is written in Java while the API of another function is written in PHP. So, is it possible to use JSP and PHP at the same time?
You can do it if you are App servers like Resin which support PHP or using experimental PHP / Java Integration. Note that running PHP on Resin may not support all extensions for a given application but I have ran Wordpress on Resin and it's neat.