ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Java J2EE  >>  Java Related  >>  J2EE
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
what is the main use of the RequestDispatch object, how we
this in realtime project
 Question Submitted By :: Rpraveendsi
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is the main use of the RequestDispatch object, how we this in realtime project
Answer
# 1
hi,

The main use of RequestDispatcher is when u want to transfer
control from one webapplication to another webapplication
deployed in same server(its web/ app server). 

If you want to transfer control from one webapplication to
another webapplication those are deployed in different
servers( Ex one in Tomcat, another in Weblogic) use
response.sendRedirect("url"); method.

if u want any confirmation please call me.

my mobile no is 09096272808
 
Is This Answer Correct ?    1 Yes 2 No
Gangadhar M
 
  Re: what is the main use of the RequestDispatch object, how we this in realtime project
Answer
# 2
The main use of Request Dispatcher Objest is to share 
request object between two servlets
 
Is This Answer Correct ?    0 Yes 1 No
Chandra Sekar
 
 
 
  Re: what is the main use of the RequestDispatch object, how we this in realtime project
Answer
# 3
RequestDispatch is mainly used to shipping request 
attributes from one servlet/jsp to another servlet/jsp. 
While doing this we first create RequestDispatch instance 
with string url as parameter to where request data to be 
shipped. Then we cal reqDispatchReference.forward
(request,response) method. This is something like assigning 
work to third party.
Ex:(to forward request data from Servlet1 to page2.jsp)
class Servlet1 extends HttpServlet{
public void service(... request,... response){
...........
RequestDispatcher rd=request.RequestDispatcher("page2.jsp");
try
{
rd.forward(request,response);
}
catch(Exception e)
{
}
}
}
 
Is This Answer Correct ?    1 Yes 0 No
Sagar
 

 
 
 
Other J2EE Interview Questions
 
  Question Asked @ Answers
 
what is external varibles in jsp? Verizon1
Explain about J2EE Application Architecture  1
what is Directory Structure of webapplication? CTS6
i developed a Stateless Session bean program.And created a client by a common java class as class m {p s v m(String s[]){....}} And i called the bean deployed in weblogic.from cmd prompt And that run. mind it i have to set setenv,seting classpath for that bean jar file before compile and run it. ok when i do a servlet programme deployed in tomcat and call that bean then it give classdefnotfoundException and NoInitialContext like this.So how i sucessfully do this? Ok when i call that bean from java class from the console like i previously told, if i don't set setenv i found the same error on the cmd prompt. pls help to get out of it  1
what is the difference between Tomcat 4 & Tomcat 5? TCS4
to update a batch in a table in jdbc which method of statement object is used  1
how many external variables are there in jsp ?  1
what is the main use of the RequestDispatch object, how we this in realtime project  3
How can we serialize a jsp page. CSC2
How to achieve multiple inheretence in java.I need an example. how we achieve.  1
Hi friends, can u explain Transparent Persistence in hibernate with sample code.  1
i have to create an application with session.during that session a timer will be started & show the time in second upto the session expired.So that i can know how many time i in that session. Hint:-i m hinted that it will coded with javascript Wipro3
what is defect. Is it runtime exception or comiletime exception L&T1
What is the difference between sendRedirect() and forward()? in what situations do we have to use send redirect() instead of forward(). Mind-Tree10
to update a batch in a table in jdbc which method of statement object is used. Polaris4
what is the purpose and activity of SessionFactory in hibernate?  2
Name the Implicit variable which is used to access other implicit objectes present in JSP. AZTEC6
Hello frds .recently I've got a call for the test in infosys .iam having 1.5 yr exp in java pltfrm.plz can anyone tell the main process( in detail) for infosys experienced professionals  1
can someone tell me how does preparedstatement works? its an interface and where is the implementation? Satyam2
why we are using XML? TCS10
 
For more J2EE Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com