Y servlet as a controller



Share on Google+Share on Google+

Y servlet as a controller
1 Answer(s)      8 years ago
Posted in : Servlet Interview Questions
View Answers

July 1, 2009 at 4:24 PM

Hi Friend,

Servlet and JSP, both are server side components which can respond to the client request.

JSP is a scripting language which supports HTML tags.Its purpose is to present the required information to the client for his request while Servlet is responsible for taking the contents of incomming http requests and process for further forwarding rather than presenation.It can access to both the user interface and the data.To generate the user response,servlet is required as it is having pure java code.

Therfore servlet is used as a controller.

To learn the advantage of servlets,visit the following link:




Related Tutorials/Questions & Answers:
Y servlet as a controller - Servlet Interview Questions
Y servlet as a controller   Hi Friends, Can anyone tell me why servlet used as controller not jsp. What are the advantages.  Hi Friend... as it is having pure java code. Therfore servlet is used as a controller. To learn
why servlet as controller - Struts
why servlet as controller   Hi Friends, Main reasons for using servlet as a controller in struts. why not jsp . Thanks Prakash  Hi... to generate the proper user response. So Servlet is used as controller. Thanks
front controller - JSP-Servlet
front controller  How to implement front controller in a web application
Why Controller in j2ee - Servlet Interview Questions
Why Controller in j2ee  Hi, Why controller(servlet) used in j2ee web application.what happens if no controller. Thank u in advance  Hi Friend, In MVC framework,the role of controller is very important.It centralizes
; import com.dao.*; /** * Servlet implementation class Controller */ public class Controller extends HttpServlet { private static final long serialVersionUID...#HttpServlet() */ public Controller() { super(); // TODO Auto
x-axis and y-axis
x-axis and y-axis  hi,, i want to to write a program that display a graph of x-axis and y-xais when i entered the parameters of the function
tabbar controller
tabbar controller  how change the tabbar controller and how we maintain the view controller of second tabbar controller
Controller in Spring
Controller in Spring  Hello Sir please help that how to write Controller in Spring web thanks in advance   Hi you can write the Spring Controller by extending the abstract class AbstractController or by using
Spring Controller
Spring Controller  How to handle form request coming on the Spring Controller ?   Hi Please write the controller as for handling form... the @Controller annotation before the class declaration
Filter/Controller  what is the difference b/w org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter and org.apache.struts2.dispatcher.FilterDispatcher. which of the above is really used as controller and which
UIView frame x,y width and height
UIView frame x,y width and height  HI, How to print the x,y width and height of UIView? Thanks   Hi, Following code can be used: CGRect...(@"width = %f", myFrame.size.width); NSLog(@"x = %f", myFrame.origin.x); NSLog(@"y
Y No Multiple Inheriatance in Java - Java Beginners
Y No Multiple Inheriatance in Java   Hi Friends, Why java doesn't support multiple inheritance.  Hi Multiple Inheritance The mechanism of inheriting the features of more than one base class
abstract wizard form controller
abstract wizard form controller  Hi In roseindia for abstract wizard form controller example contains half of the code. please send the remaing half of the code like controller classes
@Controller annotation for defining new controller
In this section, you will learn about @Controller annotation for defining new controllers
Understanding Struts Controller
Understanding Struts Controller       In this section I will describe you the Controller...-config.xml file to map the request to some destination servlet or jsp file. The class
previous view controller
controller in UINavigationController?   Generally, UINavigationController... to go back to the previous view controller. See the example given below.. UINavigationController But in case if you have more then one root view controller
Iphone Tab Bar Controller
Iphone Tab Bar Controller  Hi, I am very new in mobile application programming. So, how can i create iphone tab bar controller apps. Please suggest me any online help, so that i will enhance my technical skill in mobile web
JQuery as validation controller
JQuery as validation controller  I would love to use JQuery as validation controller but i don't know how i use.Could u help me?   Here is a link that will provide you an example of validating email using jquery
@Controller Annotation Example in Spring 3
@Controller Annotation Example in Spring 3: In this section we will see how we can create annoted controller class in Spring 3. You can @Controller annotation in the Java class to make it controller. In this tutorial we are creating
Version of com.kennycason>gdx-controller dependency
List of Version of com.kennycason>gdx-controller dependency
Version of com.sdl>odata_controller dependency
List of Version of com.sdl>odata_controller dependency
Version of com.shipdream>controller-retrofit dependency
List of Version of com.shipdream>controller-retrofit dependency
Y asked Calendar.js File For Subcombo box - Development process
Y asked Calendar.js File For Subcombo box  calendar.js...').options.length = 0; var j = 0; for (y=ey; y>=sy; y--) { document.getElementById('selectYear')[j++] = new Option(y, y); } } function hideSelect(el
Controller as jsp in mvc2? - Java Beginners
Controller as jsp in mvc2?   Hi Friend, I am beginner in web application ,plz answer my questions 1) can we use JSP as a controller in MVC-2 architecture. If so wat's d
Simple Form Controller Example
Example of using Simple Form Controller Page 2 In this page we... it at Example of using Simple Form Controller Step 7: Now we... then validator call by the controller and display errors like: If user fill
spring controller V/S stuts Action - Spring
spring controller V/S stuts Action  we are going to use spring framework so what is better spring controller or struts action
Servlet  What is Servlet
Version of com.shipdream>android-mvc-controller dependency
List of Version of com.shipdream>android-mvc-controller dependency
Why servlet in WebApplication - Servlet Interview Questions
Why servlet in WebApplication  Hi friends, am newbie to servlet. My interviewer asked why used servlet in your application. i used servlet for controller logic and business logic . is it correct
Servlet  how to navigate one servlet page to another servlet page


Advertisement null