What is Struts


Answered by asreeni on 2005-04-08 03:24:40: The core of the Struts framework is a flexible control layer based on standard technologies like Java Servlets, JavaBeans, ResourceBundles, and XML, as well as various Jakarta Commons packages. Struts encourages application architectures based on the Model 2 approach, a variation of the classic Model-View-Controller (MVC) design paradigm.  
 
Struts provides its own Controller component and integrates with other technologies to provide the Model and the View. For the Model, Struts can interact with standard data access technologies, like JDBC and EJB, as well as most any third-party packages, like Hibernate, iBATIS, or Object Relational Bridge. For the View, Struts works well with JavaServer Pages, including JSTL and JSF, as well as Velocity Templates, XSLT, and other presentation systems.  
 
The Struts framework provides the invisible underpinnings every professional web application needs to survive. Struts helps you create an extensible development environment for your application, based on published standards and proven design patterns.  

Showing Answers 1 - 22 of 22 Answers

John

  • Mar 8th, 2005
 

Struts is a good framework for web site development. It has become more and more popular over the last year or so and is now entering the corporate mainstream. If you need to process a lot of forms in your JSP/servlet development projects, take a look at what Struts can do for you. Related Struts reading.

  Was this answer useful?  Yes

Vagner Fonseca

  • Mar 23rd, 2005
 

Talk about Struts and don't mention MVC is terrible.

  Was this answer useful?  Yes

asreeni

  • Apr 8th, 2005
 

The core of the Struts framework is a flexible control layer based on standard technologies like Java Servlets, JavaBeans, ResourceBundles, and XML, as well as various Jakarta Commons packages. Struts encourages application architectures based on the Model 2 approach, a variation of the classic Model-View-Controller (MVC) design paradigm.  
 
Struts provides its own Controller component and integrates with other technologies to provide the Model and the View. For the Model, Struts can interact with standard data access technologies, like JDBC and EJB, as well as most any third-party packages, like Hibernate, iBATIS, or Object Relational Bridge. For the View, Struts works well with JavaServer Pages, including JSTL and JSF, as well as Velocity Templates, XSLT, and other presentation systems.  
 
The Struts framework provides the invisible underpinnings every professional web application needs to survive. Struts helps you create an extensible development environment for your application, based on published standards and proven design patterns.  

  Was this answer useful?  Yes

sorna

  • May 2nd, 2005
 

STRUTS is a design pattern that follows the MVC framework. It provides a way to seperate the appliation logic from the business logic

  Was this answer useful?  Yes

Preeti

  • May 4th, 2005
 

Struts is an open source frame work and it was created to make it easier for developers to buil web application based on java servlets and java server pages technologies. 
It follows MVC pattern which seperate the business logic to application logic 

raja

  • Jul 23rd, 2005
 

Struct is a jsp framework.It will be seperate business logic and presentation logic. 
Here business logic is define as Serverside scriplet and presentation logic is define as our html presentation. 
structs follows MVC pattern.Mvc denoted as Model View Controller. 
 
View is used for our presentation logic that means HTML.Model is used for serverside interaction code that means retrive data from database and store data to database and some business calculation from the server .Controller is used to control the server that means if clients need which page that page is loaded to the jsp container and show to the particular user,so controller used to loaded specific pages to the client request.

  Was this answer useful?  Yes

ammulu

  • Aug 27th, 2005
 

the answer should be that even an average student can understand the language

  Was this answer useful?  Yes

vamshidhar ghanpur

  • Aug 27th, 2005
 

Struts is a frame work mainly based on MVC design pattern,which seperates the presenntationlogic from the business logic.Struts is the one of the most succesful frameworks for devoloping the webAplications in easiest way using servlets and jsp's.without changing business logic we can chane presentation logic thru Struts-config.xml file.

vamshidhar ghanpur

  • Aug 27th, 2005
 

Struts filling the gaps between servlets,Jsp's ,Beans and customtags.

  Was this answer useful?  Yes

sowmy

  • Sep 19th, 2005
 

Struts is framework that implements MVC architecture. Provides utility classes and custom tag libraries that handle many of the most common tasks in web app development.

  Was this answer useful?  Yes

guptach

  • Sep 23rd, 2005
 

Struts is a open source Framework which is used to develop web applications using the web components servlets and JSPs. Struts Framework is designed and developed based on the MVC model 2 architecture(which is one of the design patterns). Its basic functionality is to provide the single controller which handles all the requests, process them and response back to client. ActionServlet is the Single Controller provided by Struts Framework which handles all the requests and process them by getting the information from Struts-config.xml file which is the important resource of the Struts Framework.

The basic components of the Struts are

1. ActionServlet (provided by the Struts Framework)

2. ActionForm (which is used to populate values and to validate)

3. Action (which contains the Business Logic)

4. Struts-Config.xml

  Was this answer useful?  Yes

sudha

  • Oct 2nd, 2005
 

struts is a FrameWork..It is based on MVC method..MVC means MODEL VIEW CONTROLLER..Here MODEL is a BEAN and VIEW is a JSP and CONTROLLER is a SERVLET...Struts has 6 files..4 is based on java and 2 is based on jsp.. JSP Files 1)Submit.jsp 2)Output.jsp Java Files 1)Form.java 2)Help.java 3)Action.java 4)Result.java

  Was this answer useful?  Yes

vishnu

  • Oct 4th, 2005
 

STRUTS-- is a popular framework that provides support for each part of the MVC design pattern that allows you to plug in your business logic without worrying about low-level, servlet related plumbing.

 Most of the struts application use a JavaSeverPage backed by an action form, to support the view.  The controller moves data between the view and model and controls the flow of application.  The model can consist of simple Java beans, which use JDBC to read and write to a database; complex Enterprise JavaBeans; or someting in between, like Hibernate data access objects.

  Was this answer useful?  Yes

Prashant

  • Oct 16th, 2005
 

Struts frame-work is an implementation of MVC design pattern in J2EE 

  Was this answer useful?  Yes

om shnaker mishra

  • Oct 17th, 2005
 

it's not the right ,good & exact definition of struts seems like confusing.

try to make it more clear.

  Was this answer useful?  Yes

Francis

  • Oct 31st, 2005
 

How the spring framework is replace the struts framework

what are the complexities and overhead in the struts framework and its the heavy weight component framework .

 why we need the spring framework

  Was this answer useful?  Yes

rameshkumar

  • Feb 25th, 2006
 

struts was designed for creating web applications that easily seperate the presentation layer and allow it to be abstracted from transfer/data layers.struts has received quite a bit of developer support, and is quickly becoming the dominant factor in the open-source  community.

praveen

  • May 25th, 2006
 

struts is Framework to implementing the webapplication.Framework means it is a semi implemented classes wich are used to impliment are extended to our requirment. struts fallow MVC(Model-View-Controller) architecture to develop the webapplication.

  Was this answer useful?  Yes

romal

  • Jun 8th, 2006
 

Hello Preety

Struts is a Model View Controller ramework which we can use for built complex JSP web base application.

we can use for cetralize file design in web application.

I think so.

  Was this answer useful?  Yes

P.chandra sekhar

  • Oct 16th, 2006
 

Struts forces the developer to fallow the MVC2 archit.its a frame work used to reduce the complexcity of web aplications.

  Was this answer useful?  Yes

Raj

  • Nov 15th, 2006
 

Struts is one of the most successful and  effective web application framework which  is developed using the MVC design pattern. It is an open source frame work from apache.

The main components of Struts Frame work are

1. Action Servlet

2. Action Form

3. Struts-config.xml

4. Action Classes.

  Was this answer useful?  Yes

vpnreddy

  • Feb 5th, 2007
 

Struts is a framework for developing web applications using MVC architecture

  Was this answer useful?  Yes

mukesh kumar

  • Feb 25th, 2007
 

structs is frameworks u can work with them without follow the MVC.

  Was this answer useful?  Yes

sam

  • Jun 8th, 2007
 

Struts is framework that implements MVC architecture. Provides utility classes and custom tag libraries that handle many of the most common tasks in web app development.

  Was this answer useful?  Yes

Chandu

  • Aug 1st, 2007
 

Struts 1.0 was released in July 2001. Struts is an open source framework. Struts combines Java servlets, JSP's, Custom tags and message resources into a unified framework. Dynamic webpages based on servlets executed quickly, could be moved between servers easily, and integrated well with backend data sources.

  Was this answer useful?  Yes

srikanthdusa

  • Sep 1st, 2007
 

Struts is not a design pattern it is a frame work. Struts frame work follows MVC design pattern

  Was this answer useful?  Yes

A Web page development framework. Struts combines Java Servlets, Java Server Pages, custom tags, and message resources into a unified framework. It is a cooperative, synergistic platform, suitable for development teams, independent developers, and everyone between.

  Was this answer useful?  Yes

Struts is an opensource frame work designed based on MVC architechture which is used     to develop webapplications.It is famous because of Centralized controller and loosely coupling nature.

  Was this answer useful?  Yes

Struts is a MVC based web application design framework. Where it seprates the web application in to 3 layers i.e Model, View and Controller. Model is database, view is JSP and controller are action servlet.
Model contains business logic, view work only for showing result, controller control the whole application through mapping based on XML file.

  Was this answer useful?  Yes

satyanandr

  • Sep 11th, 2009
 

Apache Struts is a frame work build on several design patterns like MVC, FrontController, Factory, Singleton etc., It is most suitable framework to develop web based applications, because  this framework is supported by all the web containers.

If some one want to learn struts then they need to have minimum knowledge on Java Beans, Servlets and Java Server Pages.
 
Struts is suitable for Client tier when we are using 2-tier or n-tier architecture for any project.

To make more flexible with struts framework they released struts 2 which decreases the coding part and increase the configuration area.

  Was this answer useful?  Yes

vana_mlk

  • Jul 2nd, 2010
 

I worked with struts it completely MVC base. I used SHINE pattern. It is a MVC base too. Actually it is an open source project to implement J2EE application.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions