Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Struts why servlet as controller

Have Programming Question? Ask it here!
 
 
 


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



Advertisement
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 Tutorials/Questions & Answers:
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
Advertisements
front controller - JSP-Servlet
front controller  How to implement front controller in a web application
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
controller
; import com.dao.*; /** * Servlet implementation class Controller */ public class Controller extends HttpServlet { private static final long serialVersionUID...#HttpServlet() */ public Controller() { super(); // TODO Auto
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
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
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
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
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
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
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 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
Why spring?
Why spring?  Why do we need to learn Spring? and where can we use it thanks
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 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
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 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
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 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
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
why jre in jdk
why jre in jdk  why jre in jdk
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
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 is super.super.method(); not allowed in Java?
Why is super.super.method(); not allowed in Java?  Why is super.super.method(); not allowed in Java
Why it called Struts?
Why it called Struts?  Why it called Struts
why using static keyword
why using static keyword  why using static keyword
why the php is open source?
why the php is open source?  why the php is open source
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
why not float main?
why not float main?  why should the main be int or void?why cant it be float or char? why int main()?why not float main()?or char main
why not float main?
why not float main?  why should the main be int or void?why cant it be float or char? why int main()?why not float main()?or char main
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
iPhone Tab Bar with Segmented Controller
to use the two controller at the same time, Tab bar is used to show the different view on click but in segmented controller you cannot recognize that its... and on that will add Tab bar controller and in that tab bar controller view
Java is an opensource program or not? why???
Java is an opensource program or not? why???  Java is an open source program or not.. why
Why "<![CDATA[ ]]>" CDATA tag.
Why tag.  . Why do we use this tag and what is the name of this tag
Why Ajax for web?
Why Ajax for web?  Hi, Why Ajax is so important in web applications development? Thanks
why get method is used?
why get method is used?  why get method is used in 60% commercial application while using post is more secure
why crieterias are importent in hibernate?
why crieterias are importent in hibernate?  why crieterias are importent in hibernate?   HiberanteTemplate is a class proposed by spring softies, here everything will be ready made to use. that is capsulized
why php and mysql - PHP
why php and mysql  I noticed in most of the application that developer always use mysql with PHP. Why they do so,, as there are money other database are too available
Why Abstract Class?
Why Abstract Class?  What is the use of Abstract Class if it has Zero Abstract methods
Advertisements
 

 

 

DMCA.com