GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  J2EE  >  Servlets
Go To First  |  Previous Question  |  Next Question 
 Servlets  |  Question 168 of 170    Print  
Controller Functions
Describe the functions of Controller?


  
Total Answers and Comments: 1 Last Update: November 04, 2008     Asked by: desh12345 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: prateeks88
 
Controller as the name specifies is a part of the application server that controlles the whole application.
In MVC(if you are aware of model,view,controller) the maintasks of the controller are:
1> Take the user inputs from the request and understand what it means to the model.
2> Tell the model to update itself and make a new model state avilable for the JSP.

What I personally feel is all of your servlets in a pure MVC based application act as a controller (only 99% sure about that).

Above answer was rated as good by the following members:
amit_9b
November 04, 2008 13:27:50   #1  
prateeks88 Member Since: November 2008   Contribution: 3    

RE: Controller Functions
Controller as the name specifies is a part of the application server that controlles the whole application.
In MVC(if you are aware of model view controller) the maintasks of the controller are:
1> Take the user inputs from the request and understand what it means to the model.
2> Tell the model to update itself and make a new model state avilable for the JSP.

What I personally feel is all of your servlets in a pure MVC based application act as a controller (only 99 sure about that).

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    

 Related Questions

Yes, you can invoke the JSP error page and pass the exception object to it from within a servlet. The trick is to create a request dispatcher for the JSP error page, and pass the exception object as a 
Latest Answer : 1. How do u difine an error page?2.What r the methods called in servlet life cycle?3.How can u make session variables un available?4. How to change the port no of agiven application server?5.How do udeploye an EJB in the existing application using webspehere?6.Why ...

In servlets, what is the use of sendredirect(),include( ), forward() ?and in applecation level at what scnario they will be used
i know only that send redircet is of client side. and remaing are severside functions 
Read Answers (3) | Asked by : srikanth

Suppose there are 15 links on the homepage of a site and each link creates a new request, how your servlet controller would handle it? (Assuming you are using MVC-2)
Read Answers (3) | Asked by : Anoop

Latest Answer : There is a controller in MVC1 architecture.Controller in MVC1 architecture is implemented in jsp along with view of the page.But the problem is there is no seperate controller in MVC1.So burden of having both Controller and view in jsp is more.JSP will ...
Read Answers (6) | Asked by : sarithareddy

Latest Answer : According to MVC2 the purpose of addition of the controller was to just separate the dynamic part of the application from the static part and for that the dynamic part given the name "view" is handled as JSP's . while the static part as controller ...
Read Answers (6) | Asked by : Prabhakaran

Describe the functions of Controller? 
Latest Answer : Controller as the name specifies is a part of the application server that controlles the whole application.In MVC(if you are aware of model,view,controller) the maintasks of the controller are:1> Take the user inputs from the request and understand what ...


 Sponsored Links

 
Related Articles

Microsoft AJAX Library - Anonymous Functions

Anonymous Functions Anonymous functions can be created adhoc and used instead of a named function Although this can hinder readability when the function is more complex you can do this if you don t intend to reuse a function s code In the following example we pass such an anonymous function to Displ
 

Microsoft AJAX Library - Functions as Variables

Functions as Variables In JavaScript functions are first class objects This means that a function is regarded as a data type whose values can be saved in local variables passed as parameters and so on For example when defining a function you can assign it to a variable and then call the function thr
 

Microsoft AJAX Library - JavaScript Functions

JavaScript Functions A simple fact that was highlighted in the previous chapter but that is often overlooked is key to understanding how objects in JavaScript work code that doesn t belong to a function is executed when it s read by the JavaScript interpreter while code that belongs to a function is
 

ERPAdvantages for Management Functions

ERP Advantages for Management Functions ERP management systems provide a technology platform in which organizations can integrate and coordinate their main internal business processes They use this to fight against the problem of the organizational inefficiency brought on by the use of different sys
 

C++ Static Functions

C Static Functions Static member functions have a class scope and they do not have access to the this pointer of the class When a member is declared as static a static member of class it has only one data for the entire class even though there are many objects created for the class The main usage of
 

C++ Virtual Functions

C Virtual Functions What are Virtual Functions Virtual as the name implies is something that exists in effect but not in reality The concept of virtual function is the same as a function but it does not really exist although it appears in needed places in a program The object oriented programming la
 

C++ Inline Functions

C Inline Functions In this C tutorial you will learn about Inline function what is inline function reason for the need of inline function what happens when an inline function is written general format of inline function explained with example mosgoogle center What is Inline Function Inline functions
 

String handling functions

What is the string handling functions present in header file <string.h>? There are number of string handling functions present in string.h. In other words if a programmer uses any of the function present in string.h then they must include the header file as #include <string.h&am
 

SQL Functions

SQL Programming Overview In the article SQL Programming, we discussed creating the “Hello, World!” function in PostgreSQL, MySQL, and Oracle. In this article, we take “Hello, World!” one step farther and introduce the parts of a function and how to pass parame
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

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