Communication between two web applications

hi,Can anybody tell me how two servlets in different web applications access each other.
[102 byte] By [pras78a] at [2007-11-27 7:49:04]
«« Date Time
»» hi
# 1
what do you mean by "access" ? A servlet is a web resource, a normal way to access such a resource is to navigate to one with the click of a link or a button, or to programmatically redirect to one using a RequestDispatcher.
gimbal2a at 2007-7-12 19:29:57 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

One way would be to make HTTP requests from one web application to the other. You could check out the Apache Jakarta Commons HttpClient package.

If the web applications are running on the same server and your server supports it you can use the requestdispatcher to forward to the servlet in the other web application. Tomcat supports this functionality of you configure both web apps to be crosscontext enabled.

tolmanka at 2007-7-12 19:29:57 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...