java访问其它服务器,一个Java Web应用程序是否可以在tomcat服务器的同一本地主机中调用另一个Java Web应用程序...
i am trying to deploy two web applications say appA and appB in same local host tomcat server and when the both the applications are up in running is it possible to call appB to appA using ajax call or redirect
解決方案
What you are looking for toa chieve can be done using the following tomcat parameter:
(from docs)
crossContext
Set to true if you want calls within this application to ServletContext.getContext() to successfully return a request dispatcher for other web applications running on this virtual host. Set to false (the default) in security conscious environments, to make getContext() always return null.
example:
總結
以上是生活随笔為你收集整理的java访问其它服务器,一个Java Web应用程序是否可以在tomcat服务器的同一本地主机中调用另一个Java Web应用程序...的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: ajax respon有数据,Ajax怎
- 下一篇: linux删除磁盘后刷新,linux