JSP Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 201 Page Views: 

How do you communicate between the servlets?



Posted By: Avi Date: 6 November 2010 02:13:58 AM
 Answer:

By using RequestDespatcher interface and servlet chaining.


Posted By: avibtech


Date: 6 November 2010 02:13:58 AM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image IltDNa
Related Questions
JSP : How do you pass an init parameter to a JSP?

How do you pass an init parameter to a JSP?

By configuring the DD for passing init parameter to a JSP and that as follows. <servlet> ....
Category: JSP Date: 11/3/2010 2:48:58 AM
JSP : What the code that pass an InitParameter to a JSP?

What the code that pass an InitParameter to a JSP?

<%@ page import="java.util.*" %>
Category: JSP Date: 11/3/2010 12:59:00 AM
JSP : Can Runnable interface be implemented from within the servlet?

Can Runnable interface be implemented from within the servlet?

Yes
Category: JSP Date: 11/2/2010 10:05:59 PM
JSP : How can you print the stack trace of an exception from a  JSP page?

How can you print the stack trace of an exception from a  JSP page?

By creating an object of PrintWriter we can print the stack trace in JSP page. Eg: PrintWriter pw = ....
Category: JSP Date: 11/2/2010 9:32:59 PM
JSP : Is inter servlet communication important?

Is inter servlet communication important?

Yes, and that because of : 1: Direct servlet manipulation allows to gain access to the other curren....
Category: JSP Date: 11/2/2010 8:26:57 PM