GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  Computer Associates  >  Java
Go To First  |  Previous Question  |  Next Question 
 Java  |  Question 3 of 23    Print  
What is the key difference between using a and HttpServletResponse.sendRedirect()?

(a) forward executes on the client while sendRedirect() executes on the server.
(b) forward executes on the server while sendRedirect() executes on the client.
(c) The two methods perform identically.
(b)



  
Total Answers and Comments: 1 Last Update: February 03, 2006   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
February 03, 2006 18:38:18   #1  
pv_mahender Member Since: February 2006   Contribution: 1    

RE: What is the key difference between using a
ans is B sendRedirect always sends a header back to the client/browser. this header then contains the resource(page/servlet) which u wanted to be redirected. the browser uses this header to make another fresh request. and it take extra round trip request scope attributes r not available for next page.where as the forward is server side that means server directly root the next page and no headers r sent to the browser which makes this very eficient.also the request and response objects remain the same both from where the forward call
 
Is this answer useful? Yes | No

 Related Questions

How can a Servlet call a JSP error page ?(a) This capability is not supported. (b) When the servlet throws the exception, it will automatically be caught by the calling JSP page. (c) The servlet needs to forward the request to the specific error page URL. The exception is passed along as an attribute named "javax.servlet.jsp.jspException". (d) The servlet needs to redirect the response to the specific error page, saving the exception off in a cookie.
(c) 

What is the key difference between using a and HttpServletResponse.sendRedirect()?(a) forward executes on the client while sendRedirect() executes on the server. (b) forward executes on the server while sendRedirect() executes on the client. (c) The two methods perform identically.
(b) 

In JSP, how can you know what HTTP method (GET or POST) is used by client request ?(a) by using request.getMethod() (b) by using request.setMethod() (c) impossible to know
(a) 

Purpose of tag(a) used to incorporate Java applets into a Web page. (b) Downloads a plugin to the client Web browser to execute an applet or Bean. (c) Both (a) & (b)
(c)EXPLANATION:JSP Syntax : [ [ ]+ ] [ text message for user ] Description : The tag is replaced by either an or tag, whichever is most appropriate for the client Web browser (the tag 

transfers the control to the mentioned destination page. tag substitutes the output of the destination page. Control remains on the same page.  

What is Temporary Servlet ? (a) Servlet that is destroyed at run time (b) Servlet that exists for a session (c) Servlet that is started and stopped for each request
(c) EXPLANATION: A temporary servlet is started when a request arrives and shut down after the response is generated. A permanent servlet is loaded when the server is started and lives until the  

In WebLogic 5.1, how can you make a JSP application work (a) By changing the root directory (b) By creating a vitual directory in Server console (c) By creating a vitual directory in client console

What topics should I be focussing in java to be successful in this interview at Computer Associates, Hyderabad?
* Threads, Synchronization, Thread Monitors * AWT & SWING Layouts (Border Layout) * Try, Catch, Finally * Switch statements (Some question on "default" option of Switch) * Java Exceptions 


 Sponsored Links

 
Related Articles

Service Oriented Java Business Integration Review

Service Oriented Java Business Integration Review Introduction If you ve read through the texts which give you an introduction to SOA or Web Services you will often find them to be quite frustrating and the reason for this is because they spend too much time referencing business processes which are
 

Linux Thin Client Networks Design and Deployment Review

Linux Thin Client Networks Design and Deployment Review Introduction This book is written by David Richards a veteran Linux thin client network designer Designed for System Administrators Linux Thin Client Networks Design and Deployment goes over the concepts which are related to thin client network
 

SQL Server 2005 Integration Services Review

SQL Server 2005 Integration Services using Visual Studio 2005 A Beginner s Guide SQL Server 2005 A offering of Microsoft Corporation for database management the SQL server 2005 is one of the powerful database management systems in the world Available for integration in almost any system that uses Mi
 

SQL Server Integration Services

SQL Server Integration Services Here is a sample chapter from Beginners Guide to SQL Server Integration Services Using Visual Studio 2005 by Jayaram Krishnaswamy Environment set up for Visual Studio 2005 with respect to SSIS and multiple tasking Connecting to Microsoft Access Text Files Excel S
 

Web Server

Web Server A web server can be a program or the computer itself which receives the requests from various other browsers and responds to those requests These requests are all requests that are being sent for some documents There are two kinds of web servers available The web server program and the
 

Client-Server Models and N-Tier Applications

Client Server Models and N Tier Applications One of principal objective of Client Server methods is to provide data to an end user However Client Server architectural methodologies are much more complex Client Server describes the process wherein a client program generates contact with a separate se
 

Java and Client Server Models

Java and Client Server Models The Role of Client Servers on the Web Client server models provide the essential mechanisms for working with the Internet In fact most of the World Wide Web is built according to this paradigm In client server models the web browsers run by millions of users are the cli
 

Web Services and Client Server Technology

Web Services and Client Server Technology Introduction to Distributed Computing The Internet and expanded network connectivity established client sever models as the preferred form of distributed computing When talking about Client Server models of networked communication using web services the broa
 

Object-Oriented Client-Server Internet

Object Oriented Client Server Internet OCSI Environments as IT Infrastructure Client Server Basics Object Oriented Client Server Internet OCSI environments provide the IT infrastructure for supporting OCSI applications For our purposes infrastructure refers to operating systems networks middleware
 

N-Tier Client-Server Architecture

N Tier Client Server Architecture Description of 1 Tier and 2 Tier Web Applications This article will discuss the various architectures of Client Server environments Perhaps the most influential Client Server environment is the Internet and its global users With the increasing use of web application
 

Related Categories
Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape