JSP / Servlet - PHP Integration OptionsのJSP /サーブレット-P HPの統合オプション
There are four different integration options in order of complexity and your requirements.別の統合には、 4つのオプションの順序を複雑さとにお応えします。 They are as follows:彼らは次のとおりです:
Multi-port Integration 複数のポートを統合
Run Apache (with PHP) on default port 80 and Tomcat on default port (8080). Apacheの実行( php )にはデフォルトのポート80とTomcatをデフォルトのポート( 8080 ) 。 They can run on the same machine with different ports without any problems whatsoever.同じマシン上で実行することができますポートの問題もなく、異なるものとします。 This is the simplest procedure.これは、簡単な手順を実行します。
Single Port Integration (Apache Mapping) シングルポートの統合( Apacheのマッピング)
In this scenario Apache and Tomcat runs on different ports as above.このシナリオで、 ApacheやTomcatの別のポートを実行する上記のようにします。 However Tomcat any application can be mapped to a path on Apache server.しかしTomcatの任意のアプリケーションのパスをできるApacheサーバに割り当てられています。 So it doesn’t appear to the end user that two servers are running.が表示されないので、エンドユーザーが2つのサーバーが実行されています。 This is almost as simple as sbove.これはほとんどsboveと同じくらい簡単です。
Running PHP 5.x in Tomcat 実行中のphp 5.xのはTomcat
The link above provides a detailed tutorial along with helpful comments from users.上記のリンクの詳細なチュートリアルに沿っに有益では、ユーザからのコメントです。 This isn’t very complex to setup (more complex than above) but you have to carefully follow the steps.これは非常に複雑を設定する(上記よりももっと複雑な)が設定されてを慎重に次の手順を実行します。 This also allows invoking php code from within jsp and with some minor changes in reverse direction too.このPHPコードから呼び出すことも可能にJSPのとは逆方向にいくつかの軽微な変更が判明しました。
Single Port Integration (Apache Tomcat Connector) シングルポートの統合( ApacheのTomcatのコネクタ)
This is slightly better than the Apache mapping solution above.これは、よりやや良い解決策は、 Apache上にマッピングします。 You can configure it to run static html pages in Apache and dynamic JSP pages using Tomcat.構成することができます静的なHTMLページを実行することで、 ApacheやTomcatの動的なJSPページを使用しています。 However it is a installation / configuration hell (almost).しかしこれは、インストール/設定地獄(ほぼ)です。
For all of the above you can exchange data between the PHP and Tomcat by using the database, files, invoking appropriate URL with GET/POST data etc. Additionally you can directly communicate in the上記のすべての間でデータ交換することができます。は、 PHPとTomcatを使用して、データベース、ファイル、適切なURLを指定して呼び出すのGET / POSTデータ等は、また直接通信することができます。
running PHP 5.x in Tomcat実行中のphp 5.xのはTomcat solution.ソリューションです。
Filed under提出されて Headline Newsニュースの見出し , 、 How Toどのように , 、 Java Software Javaソフトウェア , 、 PHP PHPの , 、 Tech Note技術のノート , 、 Technology技術 , 、 Webウェブ , 、 Web Services Webサービス | |
| |
RSS 2.0 RSS 2.0を | |
Trackbackトラックバック this Article |この記事|
Email this Article電子メールこの記事
You may also like to readを読むようにすることも可能 |




November 9th, 2006 at 9:33 pm 2006年11月9日は午後9時33分
Hi,やあ、
I’m do programming in jsp (in my site) which is need to invoke another URL/site which use PHP.私はJSPのプログラミングを行う(私のサイト)を起動する必要がありますこれは別のURL / PHPのサイトを使用します。 The problem is I don’t know how to INVOKE in JSP.この問題は、私ではありませんJSPの起動方法を知っています。
Exp:輸出:
mysite mysiteより
http://abc.com/index.jsp
phpsite
http://def.com/index.php
from mysite i need to passing parameter to the phpsite and then get back the response/parameter from the phpsite.よりmysiteより私のphpsiteのパラメータを渡す必要があると入力し、仕返しの応答/ phpsiteのパラメータとする。 In this situasion on phpsite was not allow to send redirect.このsituasion上ではないphpsiteを送信できるようにリダイレクトします。 The only way is to INVOKE that page.する唯一の方法は、そのページを起動する。
Anyone have the idea please share with me to solve this problem.誰が私の考えを共有し、この問題を解決するためにします。
Thanks,ありがとう、
jclabu. jclabuです。
November 30th, 2006 at 10:55 pm 2006年11月30日は10:55 pmの
hai海