• Post Reply Bookmark Topic Watch Topic
  • New Topic

calling servlet of other .war file.  RSS feed

 
Jigar Naik
Ranch Hand
Posts: 762
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have got 2 war file.

one is coupon.war and the other is mis.war

i have cretad one jsp named. c_voucher.jsp which whose action is a servlet in Tools.war.

how do i call servlet of coupon.war from jsp's action in mis.war ???
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That depends on what you mean by "call a servlet". A web page in web app "mis" can generate a URL pointing to web app "coupon" without problem.

If you want to use a RequestDispatcher for a different web app, then the web apps need to be allowed to do that. Tomcat does it by the crossContext attribute in the Context element.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!