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



Home Answers Viewqa Servlet-Interview-Questions Y servlet as a controller
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Rajendra
Y servlet as a controller
1 Answer(s)      5 years and 4 months ago
Posted in : Servlet Interview Questions



Advertisement
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:

http://www.roseindia.net/servlets/AdvantagesOfServlets.shtml

Thanks


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
Advertisements
front controller - JSP-Servlet
front controller  How to implement front controller in a web application
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 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
y
tabbar controller
tabbar controller  how change the tabbar controller and how we maintain the view controller of second tabbar controller
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
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
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
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
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
@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
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
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
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
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 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
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
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
iPhone Segmented Controller Through Coding
iPhone Segmented Controller Through Coding In this Tutorial will learn how to create Segmented Controller through coding and also how to set on to the view... Controller which we are using in our application is using Interface Builder but here
four rectangle/image of the shape of the button.then Draw these on some x and y co-ordinated in j2me then how to draw ?
four rectangle/image of the shape of the button.then Draw these on some x and y co-ordinated in j2me then how to draw ?  hi, i have button use... of the shape of the button.then Draw these on some x and y co-ordinated in j2me
Advertisements
 

 

 

DMCA.com