Home Tutorialhelp Comment why we use Servlet as a Controller rather than Jsp

 
 

Comment

Rajasekhar
why we use Servlet as a Controller rather than Jsp,
March 31, 2007 at 2:41 PM

why we use Servlet as a Controller rather than Jsp.What is the main aim.
View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Struts Questions

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 Friend, JSP is again a servlet which is having HTML syntax with java support.All 

General

Understanding Struts Controller
Understanding Struts Controller   ...-config.xml file to map the request to some destination servlet or jsp file. The class.... It is the Controller part of the Struts Framework. ActionServlet is configured 

Servlet Interview Questions

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, Servlet and JSP, both are server side components which can respond 

JSP Servlet Questions

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 

Servlet Interview Questions

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 

Java Interview Questions

controller
; import com.dao.*; /** * Servlet implementation class Controller */ public class Controller extends HttpServlet { private static final long serialVersionUID...#HttpServlet() */ public Controller() { super(); // TODO Auto 

Struts Questions

why we use struts framework instead of springs
why we use struts framework instead of springs  why we use struts... requirements.In some cases spring is better and in some cases struts is better... but not as struts. Some points to prefer Struts2-- It is very flexible 

Java Beginners

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 

Struts Examples

Interview Questions - Struts Interview Questions
is handled by a light-weight Action object, rather than an individual servlet. Struts...;Struts framework  is built on J2EE technologies (JSP, Servlet, Taglibs... to the client. The controller is implemented by a java servlet, this servlet 

Servlet Interview Questions

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 

SQL Question

Why we use Semicolon after SQL Statements?
Why we use Semicolon after SQL Statements?  Why we use Semicolon after SQL Statements?   Hi, Some database systems require a semicolon... that allow more than one SQL statement to be executed in the same call 

JSP Servlet Questions

front controller - JSP-Servlet
front controller  How to implement front controller in a web application 

Free Programming books

Struts Books
to be an evangelistic "Why everyone should use Struts and why MVC is impossible without... how to use both JSP tags and Velocity templates. It carefully explains the Struts..., including JSPs, servlets, Web applications, the Jakarta-Tomcat JSP/servlet container 

Struts Questions

can we use include files in struts.....? - Struts
can we use include files in struts.....?  hi, i have a doubt that whether we should not redirect from one jsp to another jsp directly using include r jsp:include directives. I heard that it is violation of struts rules if we 

Struts Examples

Why Struts 2
Why Struts 2       The new version Struts... to use all String properties. Simplified testability - Struts 2... a web container. customizing controller - Struts 1 lets to customize 

Hibernate Interview Questions

Why do we use ORM?
Why do we use ORM?  Why do we use ORM?   ORM is technology... programming. In ORM we define the way of mapping of classes to table and also define the mapping of which property for which column. In ORM we can use plain java 

Java Beginners

for writting java program why we are taking more than one class
for writting java program why we are taking more than one class  for writting java program only one class is enough but why we are taking more than one class 

Development process Questions

Struts with Servlet Jsp - Development process
Struts with Servlet Jsp   Hi Friends, Can u give me steps for developing simple web application with struts, Servlets, Jsp... then click submit button. 2)control goes to servlet (controller) thru UserLogin.do 

Spring Framework Questions

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 

Spring 3

@Controller Annotation Example in Spring 3
@Controller Annotation Example in Spring 3: In this section we will see how we... annotation in the Java class to make it controller. In this tutorial we are creating... generated by a jsp page. Spring provides controller for access the application 

Java Beginners

why we use constructors instead of methods in java?
why we use constructors instead of methods in java?   why we use constructors instead of methods in java 

Struts-Tutorials

Developing Struts Application
outline of Struts, we can enumerate the following points. All requests are passed through a controller servlet, known as Action-servlet. This is achieved.... (ActionErrors).  We use tags in input side and also for output view 

Struts Questions

jsp and struts
jsp and struts  What is the difference between jsp and struts? Does struts use jsp?   Java Server Pages (JSP) is a server-side technology... (by Apache) based on MVC concepts and developed using Servlet/JSP technology 

Struts-Tutorials

Struts Articles
are familiar with the Struts framework in the servlet environment how to use... includes support beyond the servlet Struts framework. In Part 1, we talked about how... the input. Extending Struts In this article, we will use 

Hibernate Questions

Why we use singleton class in hibernate sessionfactory?
Why we use singleton class in hibernate sessionfactory?  Hello, Please tell me why we use singleton class in hibernate sessionfactory? hibernate sessionfactory singleton example would be very helpful. Thanks 

Java Beginners

why we use abstract class in java?
why we use abstract class in java?  what is the the purpose of abstract class.Give example when to use abstract and when use interface 

Struts Questions

use of Struts - Struts
use of Struts  Hi, can anybody tell me what is the importance of sturts? why we are using it? Hitendra  Hi, I am sending... example. http://www.roseindia.net/struts/ Thanks 

Spring Framework

Why to use Spring Framework?
Why to use Spring Framework in a web application? In this article I... on the Spring libraries. ADS4ThUnitADS Why to use the Spring Framework? Here is points that describes why to use the Spring Framework? Spring framework 

Java Beginners

why we use design patterns in java?Example?
why we use design patterns in java?Example?  Hi..... Why we use design patterns?,why they are needed in programming languages?,advantages?   hi friend, please go through the following links may this will be helpful 

Struts 2 Tutorials

Introduction to Struts 2 Framework
Struts 2 framework We will use the Eclipse IDE development... is that it uses the abstract classes rather than interfaces. Struts 2... the basics of Struts 2 framework. We will explain you how you can create your first 

Java Beginners

arrays,why we cannot use this statement
arrays,why we cannot use this statement  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 

Java Beginners

arrays,why we cannot use this statement
arrays,why we cannot use this statement  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 

Struts-Tutorials

Struts Links - Links to Many Struts Resources
, this tutorial is not meant to be an evangelistic "Why everyone should use Struts..., but servlet, JSP, Struts, and JSF training courses at public venues are periodically... in this tutorial.  Client Side Address Validation in Struts In this lesson we 

Struts Examples

What is Struts - Struts Architecturec
the presentation data to the user. Here are the reasons why we should use the MVC... of the view we can use the Custom tags, java script etc.  The Struts model... model we want to choose. The view of the Struts architecture is given below 

Struts Examples

Struts Alternative
-Controller (MVC) design paradigm. Most Struts applications use a browser as the client... and XSL-FO. The idea behind stxx is to remove the need to use JSP and tag libraries.... This is a major difference to Struts. You can use any object as a command or form 

Struts Examples

Struts Validator Framework - lab oriented lesson
..the jsp) and C(controller..Action servlet) do their respective jobs.... In this hands-on tutorial , the author explains how we can use this readymade... validation , is developed. We had seen an introduction to Struts in Jan-2005 issue 

Struts Examples

Struts 2 Tutorial
the architecture of Struts 2 Framework.    Why Struts... and Installing Struts 2 In this section we will download and install the Struts 2.0 on the latest version of Tomcat container. We will first 

Spring 3

Pass message controller to viiew with the help of Model in Spring 3
and accept user input. We will create some form field like userName and use jstl core...Pass message from Controller to View with help of Model in Spring 3.0: In this example, we will discuss about the pass message or different types of value 

SQL Question

why we use ^ operator in sql, and what is the meaning of that operator?
why we use ^ operator in sql, and what is the meaning of that operator?  why we use ^ operator in sql, and what is the meaning of that operator 

Struts-Tutorials

What is Struts
Apache Struts is used to create Java web applications using Java Servlet API and Model-View-Controller (MVC) Architecture. Struts has a set of tag libaries... do not work when it comes to large projects and hence we require Struts. Java 

Framework Questions

struts
struts  we have the concept of jsp's and servlets right we can develop the web-pages each and everything then why what for struts inturdouced 

Struts Examples

How Struts Works
components.    The view we use in the struts can be either Jsp..., the View, and the Controller. Below we are describing the working of struts... is the central component of the Struts controller. This servlet extends 

Struts 1 Tutorials

Struts 1 Tutorial and example programs
made by the client or by web browsers. In struts JavaServerPages (JSP... to the Struts Controller This lesson is an introduction to Controller part... struts ActionFrom class and jsp page.    Using 

Subversion Questions

more than one struts-config.xml file
more than one struts-config.xml file  Can we have more than one struts-config.xml file for a single Struts application 

Struts Questions

Struts - Struts
for later use in in any other jsp or servlet(action class) until session exist... in struts? please it,s urgent...........  session tracking? you mean session management? we can maintain using class HttpSession. the code follows 

JSP Servlet Questions

struts - JSP-Servlet
Servlet to JSP : "MyServlet.java" import java.io.*; import javax.servlet....://www.roseindia.net/jsp/usingbeansinjsp.shtml http://www.roseindia.net/jsp/jspsession/use...struts  Hello My question is How can I pass the values into jsp 

Spring Framework

Controller Interface example in Spring 2.5 MVC. Learn how to create and run the example.
framework:- In this section we will see the example of Controller Interface... of handling multiple. In this tutorial we have created our controller... Controller Interface       

Struts Questions

struts - Struts
struts  What is Model View Controller architecture in a web application,and why would you use 

Struts-Tutorials

Struts Tutorials
STC could use a "mock object approach", where the servlet and Struts... Struts Struts is comprised of a controller servlet, beans and other Java classes... controller for your application (the Struts servlet acts as a common controller 

Struts Questions

Struts
Struts  Why struts rather than other frame works?   Struts is used into web based enterprise applications. Struts2 cab be used with Spring... by the application. There are several advantages of Struts that makes it popular 

JSP Servlet Questions

what the use of taglib - JSP-Servlet
what the use of taglib  what is the use of taglib where we exactly use it?  Hi Friend, It is used to create custom tag in jsp. For more information, visit the following link: http://www.roseindia.net/jsp 

JavaScript Questions

Accessing Jqxgrid data in Controller layer using JSP
to Controller layer,thats more than enough, I can take it forward. Is there any...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 

Framework Questions

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 request.setAttribute("msg", "Successfully Login"); In jsp ${msg} and then i 

Java Beginners

Why we should use string args[] in main method in java?
Why we should use string args[] in main method in java?  we use only string in the main method not any other one.. specify the reason... and tell me...;By running a program at a command line we can pass some arguments 

Spring Framework Questions

Why spring?
Why spring?  Why do we need to learn Spring? and where can we use it thanks 

Servlet Interview Questions

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 

Hibernate Questions

why to use hibernet vs jdbc
why to use hibernet vs jdbc  plz send me the reply   Hi... specific 2) Hibernate is a set of Objects so there is no use of sql whereas in JDBC there is a use of SQL. 3) As Hibernate Supports two level of cache, you 

JSP Servlet Questions

EL(JSP) - JSP-Servlet
version 1.2. I make a program where In Jsp, I want to use EL rather than JSP... code in JSP file. Please reslove my problem...  Hi friend, Use...EL(JSP)  Dear Sir, I want to ask that Whether BEA Application server 

JSP Servlet Questions

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 

Mobile Applications Questions

tabbar controller
tabbar controller  how change the tabbar controller and how we maintain the view controller of second tabbar controller 

Servlets-Tutorials

Difference Between Servlet and JSP
Difference Between Servlet and JSP In this section we will describe the Servlet and JSP. We will compare the both technologies. We will discuss..., Servlet is faster than the JSP. Coding in Servlet is hard than the JSP. In MVC 

JSP Servlet Questions

JSP - JSP-Servlet
JSP  What is MVC? My assumption is JSP pages in WEB-INF directory... servlets using "CallableStatement". Is this right assumption? What we can say..., MVC : M-Model V-View C-Controller 1). Model: The model object knows 

Struts Questions

Struts Tag Lib - Struts
use the custom tag in a JSP page. You can use more than one taglib directive... reserve word you cannot use the tag prefixes jsp, jspx, java, javax, servlet.... JSP Syntax Examples in Struts : Description The taglib 

JSP Servlet Questions

J2EE - JSP-Servlet
but servlet are not. Jsp is more convenient to write (and to modify!) regular HTML than... class..whereas jsp is not Servlet is more faster than JSP, but JSP is more convenient than Servlet and JSP is clearly superior, shorter, simple and easier 

Struts Questions

hashmap with struts and jsp - Struts
hashmap with struts and jsp  i am trying to use hash map in struts.I am inserting on class object as value and string as key.This object is of class... upto 140 records but if i fech more than 400 record from database my browser gets 

General

Jakarta Struts Interview Questions
? A: Jakarta Struts is open source implementation of MVC (Model-View-Controller... Struts Framework this class plays the role of controller. All the requests...? A: Struts Framework provides the functionality to validate the form data. It can be use 

General

Open Source Web Frameworks in Java
is the implementation of Model-View-Controller (MVC) design pattern for the JSP... to represent the model and the controller and templates use this components to render... need to use JSP files, special tags, XML files, requests, posts, etc. Everything 

JSP Servlet Questions

JSP-EL - JSP-Servlet
Use of Expression Language in jsp Hello ${vij.name...JSP-EL  Dear Sir, I know that this below code run on your system.But Sir, Why the EL code are not executed on my system.I run that code on BEA 

Struts Questions

struts - Struts
struts  What is model View Controller architecture in a web application,and why would you use it?  Hi mamatha, The main aim of the MVC... the presentation data to the user. Model-view-controller (MVC) is an architectural 

JSP Servlet Questions

struts,jsp - JSP-Servlet
Struts, JSP get records from database  how can i get single record from database in tabular form in struts as well as in jsp 

Struts Questions

Struts - Struts
Struts  Hi All, Can we have more than one struts-config.xml... in Advance..  Yes we can have more than one struts config files.. Here we use SwitchAction. So better study to use switchaction class 

Struts 2 Tutorials

How Struts 2 Framework works?
. Controller maps the user request to specific action. In Struts 2...How Struts 2 Framework works? This tutorial explains you the working of the Struts 2.3.15.1 framework. Struts 2 framework implements MVC architecture, which 

JSP Servlet Questions

Servlets Vs Jsp - JSP-Servlet
with servlets but not with jsp's)Most of cases we use jsp's for presentation.i.e,the output nthat has to sent to browser can be done by making use of jsp's...)---servlet ok   Hi friend, Servlet and Jsp are both important 

JSP Servlet Questions

Why request.getParameter(
="POST"> why it happen? Anybody plz help me.. i want use it my project...plz plz   Please visit the following link: JSP file upload with date...Why request.getParameter(  Hi all, I want to to do upload file in my 

Struts Questions

struts - Struts
struts  we are using Struts framework for mobile applications,but we are not using jsps for views instead of jsps we planning to use xhtmls.In struts ,we writing the action ="action class name"in jsp,here in xhtml what we have 

Struts Questions

struts - Struts
struts  we are using Struts framework for mobile applications,but we are not using jsps for views instead of jsps we planning to use xhtmls.In struts ,we writing the action ="action class name"in jsp,here in xhtml what we have 

Struts Questions

struts
struts  <p>hi here is my code in struts i want to validate my... }//execute }//class struts-config.xml &lt;struts..."/&gt; &lt;/plug-in&gt; </struts-config> validator 

JSP Servlet Questions

Tag library - JSP-Servlet
Tag library  Hi, although i read a lot about tag library in jsp but it's not clear to me please tell me what is tag library and why it's use in struts. Please give me some simple example so that i can make my concept clear 

Java Server Faces Questions

servlets and struts
servlets and struts  wat is the diffrence between servlets and struts?   A Servlet is a technology and Struts is a framework which relies on or makes use of Servlets.A Servlet is a controller. Struts has its own Servlet 

Java Beginners

why and where we use setter and getter methods in java, please give me one example program.....
why and where we use setter and getter methods in java, please give me one example program.....  why and where we use setter and getter methods in java, please give me one example program 

Struts-Tutorials

Struts 2 - History of Struts 2
an excellent framework for developing application easily by organizing JSP and Servlet... and constructs like its compatibility of working within existing Web APIs in Java rather than... Struts 2 History       Apache Struts 

Struts Examples

Introduction to Struts 2
. This section we are discussing the new features, struts 2 basics and architecture..., JSP API 2.0 and Java 5.  Video Tutorial - Introduction to Struts 2... the productivity Architecture of Struts 2 Application Here we are explaining 

JSP Servlet Questions

Jsp using mvc - JSP-Servlet
Jsp using mvc  hi I have written using mvc2 architecture, i have... if there is any modification in the business logic. In other words, we can say... one controller which receives all the request for the application 

JSP Servlet Questions

Struts 2.0 - JSP-Servlet
Struts 2.0  How to call two actions from single JSp page in Struts 2.0 

Struts Questions

struts
struts  Hi, 1) can we write two controller classes in struts 

JSP Interview Questions

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 

JSP Servlet Questions

About jsp and Servlet - JSP-Servlet
About jsp and Servlet  Servlets are directly using java technologies. It is used in HTTP,FTP..etc, But Jsp only used in HTTP. Servlets are running fastly... Then why we moved from Servlet to JSP.. Pl Tell me the reasons 

Struts-Tutorials

Struts Guide
from scratch. We will use this file to create our web application. - struts...? - - Struts Frame work is the implementation of Model-View-Controller (MVC) design pattern for the JSP. Struts is maintained as a part of Apache Jakarta project 

JSP Servlet Questions

jsp-servlet - JSP-Servlet
jsp-servlet  what is the problem with using microsoft access as database? The sample example, i got from you is: database:mysql. One of my java faculty said, we cannot use ms-access as database because it has some dis-advantage 

Struts Questions

Why it called Struts?
Why it called Struts?  Why it called Struts 

Flex Questions

Why "<![CDATA[ ]]>" CDATA tag.
Why tag.  . Why do we use this tag and what is the name of this tag 

WebSevices Questions

Web Service - Which files we have to give to client and how they will use that
and have to use it, how we call this in jsp/servlet 3) Which type of response we...Web Service - Which files we have to give to client and how they will use.... 2) In client side how they will use that, and how they call method from 

Struts Examples

Struts 2 Training
. In this section we are going to explain you the architecture of Struts 2 Framework.... The basic platform requirements are Servlet API 2.4, JSP API 2.0 and Java 5... Struts 2 Training       The Struts

PHP Tutorial

Why PHP ?
Why PHP? Reasons to use PHP are given below: 1.    PHP is open source, free to download and use : PHP is free and you can download... is it supports a wide variety of database and it can be use with any database like:  

Struts Examples

Struts Interview Questions
of Model. View: JSP, HTML etc. are part of View Controller: Action Servlet...;    Question: Can I setup Apache Struts to use multiple configuration files? Answer: Yes Struts can use multiple configuration files. Here 

PHP Tutorial

Why would we want a Database?
Part-3 : Why would we want a Database? Most of the beginners are asking this question why do we need database in our application or program. They don't know... Rotator : One of the essential use of PHP and MySQL is the banner rotator. Banner 

Struts-Tutorials

Struts Presentations
from ${?}expressions  Why the expert groups for JavaServer Pages (JSP... in to Requestprocessor APIs Introduction of Struts * Central controller... Struts Presentations Struts Adobe Acrobat 

JSP Servlet Questions

jsp and servlet
characters and it shud not be empty and it shud contain atleast 1 no etc and if we login from login page and if we submit it shud be validated in a servlet using...jsp and servlet  hello friends just want to create a jsp page 

Framework Questions

whats the difference between struts and spring frameworks.why we use spring instead of struts
whats the difference between struts and spring frameworks.why we use spring instead of struts  whats the difference between struts and spring frameworks.why we use spring instead of struts 

Struts Questions

if we have 2 struts-config files - Struts
, No we cannot have 2 struts-config.xml files. In one case we can use 2 struts-cofig.xml files with some minor change in the file name. i e we can use...if we have 2 struts-config files  if we have declared 2 struts 

Advertisements Advertisements
 

 

 

DMCA.com