• Post Reply Bookmark Topic Watch Topic
  • New Topic

PHP Wrapper for JSP

 
Meghana Reddy
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've a question regarding the mechanism for PHP and JSP integration.

Is it possible at all to invoke a JSP page from a PHP page?
i.e., I've a PHP form which will collect the user input and then will post this user input to a JSP which will do further processing.

We have an application developed in JSP. We are trying to integrate this with some other application which can invoke only PHP.

So we dont want to re-write all the JSPs in PHP. Instead we would like to have PHP invoke the JSP and display the output.

In essence, we want the application to behave the same way whether you invoke a PHP or directly the JSP.

Something like index.PHP -> index.JSP -> Backend Java components.

So, something like http://localhost:8080/index.php or http://localhost:8080/index.jsp shouldnt make a difference.

For the first URL, the index.php invokes index.jsp and for the 2nd url , the index.jsp gets invoked directly without the PHP wrapper.


Any ideas?!

Thanks
Meghana

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you send a request to a server, it makes no difference what the technology is. Whether the URL addresses a JSP or not, it can be sent from anything -- doesn't matter.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!