Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

calling a servlets

 
saravana kumar
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends

How can a Servlets which is one JVM call another Servlets which is antoher JVM?

what is the difference between Servlet Container and JSP Container ? wy can't have only Servlet container since jsp finally converts as Servlet class.

can any one clarify ? thanks a lot.

Regards
saran
 
Napa Sreedhar
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use response.sendRedirect(" ").. to call servlets of other servlet container.
 
Ikram Soomro
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the difference between Servlet Container and JSP Container ? wy can't have only Servlet container since jsp finally converts as Servlet class.


It is JSP Container which converts JSP file into Servlet, but Servlet Container executes the Servlet which can be JSP converted Servlet.

calling servlet from another JVM? do u mean calling servlet from another web application? make it clear please.

Ikram Soomro
(SCJP,SCWCD)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic