Home Answers Viewqa Struts why servlet as controller

 
 


Rajendra
why servlet as controller
1 Answer(s)      3 years and 9 months ago
Posted in : Struts

View Answers

September 22, 2009 at 4:08 PM


Hi Friend,

JSP is again a servlet which is having HTML syntax with java support.All the code that is written in JSP willbe converted finall into Servlet.

A single servlet cannot respond each and every client request such as Add,delete,update,Search therefore the request and response object is passed onto different servlets with little task completed by each servlet. This controlling part is easier to write in java.As Servlet contains the pure java code and coding is needed to generate the proper user response. So Servlet is used as controller.

Thanks









Related Pages:
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
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
controller
; import com.dao.*; /** * Servlet implementation class Controller */ public class Controller extends HttpServlet { private static final long serialVersionUID...#HttpServlet() */ public Controller() { super(); // TODO Auto
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 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
Why servlet in WebApplication - Servlet Interview Questions
Why servlet in WebApplication  Hi Frieds, I am new to servlet why to use servlet in webapplication. what i know is " use servlet as a controller... reason for implementing business logic with servlets , why not jsp
front controller - JSP-Servlet
front controller  How to implement front controller in a web application
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
@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
Why <servlet-name> use in web.xml - JSP-Servlet
Why <servlet-name> use in web.xml  WHY DO WE USE THE <SERVLET-NAME>TAG IN WEB.XML APPLCATION   WHY DO WE USE THE <SERVLET-NAME>TAG IN WEB.XML APPLCATION AND HOW A simple program of using <servlet
Why System class not in jsp - JSP-Servlet
Why System class not in jsp  Hi Friends, why system.out.println("") not working in jsp . But out.println is working I want the reason pz . Thanks Prakash
Controller Interface example in Spring 2.5 MVC. Learn how to create and run the example.
Controller Interface       Controller Interface implementation example in Spring 2.5 Web MVC framework:- In this section we will see the example of Controller Interface
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
why business logic in servlets - JSP-Interview Questions
why business logic in servlets  why business logic written using servlets not in jsp. Jsp used for presentation purpose. serlvet used for coding business logic and controller logic. Reason for using servlets in business logic
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
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
Pass message controller to viiew with the help of Model in Spring 3
Pass message from Controller to View with help of Model in Spring 3.0... from controller to the view layer. For example, if the class or view validator not include in the controller class in the spring 3.0 application and you want
Servlet
Servlet   Why is Servlet so popular?   Because servlets are platform-independent Java classes that are compiled to platform-neutral byte code that can be loaded dynamically into and run by a Java technology-enabled Web
Servlet
Servlet  Why init() is required to perform initialization activities instead of constructor
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
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
Servlet
Servlet  What is the actual use of servlets in programming?  Hi Friend, Servlets are the server side component. It acts as a controller. It can handle multiple requests concurrently, and can synchronize requests.The
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
why jsp pages are not working on linux but java application is working in windows - JSP-Servlet
why jsp pages are not working on linux but java application is working in windows  java web application jsp pages are not showing the fileds corectly on linux server but same application is working on windows.why
Interview Questions - Struts Interview Questions
to the client. The controller is implemented by a java servlet, this servlet... of that class. An action servlet is the primary component of the controller... is RequestProcessor and RequestDispatcher? Answer:  The controller is responsible
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
Why spring?
Why spring?  Why do we need to learn Spring? and where can we use it thanks
why to create directory structure as web-inf & classes & lib - Java Beginners
why to create directory structure as web-inf & classes & lib    we all know that to prepare webapplications we will create a direcotry sturcture... lib and class under WEB-INF direcory c)provide the servlet classes under
why to create directory structure as web-inf & classes & lib - Java Beginners
why to create directory structure as web-inf & classes & lib    we all know that to prepare webapplications we will create a direcotry sturcture... lib and class under WEB-INF direcory c)provide the servlet classes under
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
Why NSMutableDictionary
Why NSMutableDictionary  Why NSMutableDictionary is used for?   NSMutableDictionary inherits from NSDictionary class, which is used to manage mutable associations of keys and values. Actually, NSMutableDictionary
servlet - Servlet Interview Questions
servlet  sir, while performing the servlet programming why we use WEB-INF in capital letters and lib and classes folders are in small leeters
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
Why request.getParameter(
Why request.getParameter(  Hi all, I want to to do upload file in my folder and that time i want to store date in my MySQL Database. Here...="POST"> why it happen? Anybody plz help me.. i want use it my project...plz
why this can't
why this can't  import java.util.*; class Dash{ public static void main(String args[]){ int x0=100; int[] x1=new int[3]; int[][] x2=new int[3][3]; int[][][] x3=new int[3][3][3
Introduction To Java Servlet Technology
Introduction To Java Servlet Technology In this tutorial you will learn about the Java servlet technology and why it came into existence, what are its features etc. Java Servlet is a technology to generate the dynamic content on web
Why this is not working...?
Why this is not working...?  import java.util.*; public class Family { int size_of_family=0; public Person[] members=new Person[size_of_family]; Person d = new Person(); public Family (int size_of_family){ members = new
servlet - Servlet Interview Questions
new qustion is: why we do not need to use main method in a servlet.... For initialization of servlet instances the init method is used. The container initializes the servlet instance by calling the init method of the Servlet
servlet - Servlet Interview Questions
servlet  why servlet has three names ? give an example?  Hi Friend, A Servlet can have three names, 1) file path name-It defines the full path name of the servlet to the server. 2) deployment name-It is a secret
How to pass the value from controller to jsp page ?
How to pass the value from controller to jsp page ?  HI I need to pass the value from controller to jsp. I use the way like this Controller.... when i set the controller as request.getSession().setattribute("msg
Accessing Jqxgrid data in Controller layer using JSP
Accessing Jqxgrid data in Controller layer using JSP  I am using... controller layer using JAVA. What i actually require is to fetch the data which... to Controller layer,thats more than enough, I can take it forward. Is there any
why jre in jdk
why jre in jdk  why jre in jdk
How to use spring validator with multiaction controller?
How to use spring validator with multiaction controller?  Hi, I am trying to use spring validator with multiaction controller. The configuration...; And the controller has method called update(..., BindException error) ----it shows
Model-View-Controller (MVC) Structure
Java NotesModel-View-Controller (MVC) Structure Previous - Presentation...-Controller (MVC)pattern. The idea is to separate the user interface... with the Model as necessary), and Controller (responds to user requests, interacting
Why it called Struts?
Why it called Struts?  Why it called Struts
why the php is open source?
why the php is open source?  why the php is open source