the Advantages of Struts

the Advantages of Struts

What are the Advantages of Struts ?

View Answers

November 19, 2010 at 3:02 PM

Struts is a framework follows MVC desigen pattran. so it offers different advantages for the programmer.

It reduces the development maintance time.

Centralizetion of Configuration :
Rather than hard coding information into java programs,many Struts values are represented in XML or property files. Struts_config.xml file is the place from where you can get all informations about your web application. It is organized, your Action class , Form bean and JSP page information is in Struts_config.xml so don't need to search .

Form Beans :
Don't need to set the form vales to your value object . When you want to capture data from a form ( In the servlet you do request.getParameter()). In the struts you don't need to do explicitly request.getParameter(). Struts request processor will do for you. All the input data will be set to form bean.

Bean Tags :
Struts provides a set of custom JSP tags (bean:write,in particular) that let you easily output the properties of JavaBeans components. Basically,these are concise and powerful variations of the standard jsp:useBean and jsp:getProperty tags.

HTML tags :
Struts provides a set of custom JSP tags to create HTML forms that are associated with JavaBeans components.

Form Field Validation :
Apache Struts has built-in capabilities for checking that form values are in the required format or not .if values are not in proper format then the form can be automatically display with error message and with the previously entered values. This validation can be performed on the server (in Java),or both on the server and on the client (in JavaScript).

Thanks.


January 27, 2013 at 12:29 AM

Advantages of Struts:

**We can deliver the projects easily

**We can reduce the project development time

**Maintanace Of the Project becomes very Easy

**It Follows MVC architecture

**All the required values are write in the xml files,so we can easily change.

**We no need to provide setters and getters methods for java beans.

**We no need to write huge amount of serverside validations

**We have struts tag libraries to do specific works

**We can easily Handle Errors and display appropriate messages

**We can develop "I18N" applications easily

RAMAKRISHNA VAKKALAGADDA









Related Tutorials/Questions & Answers:
the Advantages of Struts
the Advantages of Struts   What are the Advantages of Struts
Advantages of JSF
Advantages of JSF  What are the advantages of JSF
Advertisements
Advantages of ORM
Advantages of ORM  What are the advantages of ORM like hibernate
advantages of Servlets
advantages of Servlets  What is advantages of Servlets ?    Portability. Powerful. Efficiency. Safety. Integration. Extensibilty. Inexpensive
Hibernate Advantages
In this section we will discuss hibernate advantages
Advantages of XML
Advantages of XML   hello, what are the advantage of XML?   Hii,ADS_TO_REPLACE_1 These are the some advantage of xml 1.It is as easy as HTML. 2.XML is fully compatible with applications like JAVA, and it can
What are the advantages and disadvantages of CSS?
What are the advantages and disadvantages of CSS?  What are the advantages and disadvantages of CSS
Struts
by the application. There are several advantages of Struts that makes it popular...Struts  Why struts rather than other frame works?   Struts is used into web based enterprise applications. Struts2 cab be used with Spring
What are Advantages and Disadvantages of AJAX
What are Advantages and Disadvantages of AJAX  Hi, I want to know about the Advantages and Disadvantages of AJAX. Let's know the details. Thanks   There are several advantages of Ajax but few disadvantages also
VoIP Advantages
VoIP Advantages VoIP Advantage and  Disadvantage Advantages of VOIP services: You get to make free long distance calls, and you....    Advantages and Disadvantages of VOIP-Intertangent Technology
Struts
Struts   How to retrive data from database by using Struts
STRUTS
STRUTS  MAIN DIFFERENCES BETWEEN STRUTS 1 AND STRUTS 2
STRUTS
STRUTS  MAIN DIFFERENCES BETWEEN STRUTS 1 AND STRUTS 2
Struts
Struts  how to learn struts
Struts
Struts  what is SwitchAction in struts
STRUTS
STRUTS   Request context in struts? SendRedirect () and forward how to configure in struts-config.xml
advantages of get method?
advantages of get method?  php in what is advatages of get methods and how you can use get methods
struts
struts  in industry, struts 1 and struts 2. which is the best? which is useful as a professuional   Have a look at the following link: Struts Tutorials
Struts
Struts  Tell me good struts manual
struts
struts  what are the 4 methods of struts framework
struts
struts shopping cart project in struts with oracle database connection  shopping cart project in struts with oracle database connection   Have a look at the following link: Struts Shopping Cart using MySQL
Struts
Struts   When Submit a Form and while submit is working ,press the Refresh , what will happen in Struts
struts
struts  Hi what is struts flow of 1.2 version struts? i have struts applicatin then from jsp page how struts application flows Thanks Kalins Naik   Please visit the following link: Struts Tutorial
struts
struts  why doc type is not manditory in struts configuration file
struts
struts  why doc type is not manditory in struts configuration file
struts
struts   how to write Dao to select data from the database
struts
struts  why doc type is not manditory in struts configuration file
struts
struts  why doc type is not manditory in struts configuration file
Struts
Struts  Hi i am new to struts. I don't know how to create struts please in eclipse help me
struts
struts   Hi how struts flows from jsp page to databae and also using validation ? Thanks Kalins Naik
Struts
Setter methods of form bean class in Struts applications  who calls the setter methods of form bean class in struts applications
Struts
Struts   What is called properties file in struts? How you call the properties message to the View (Front End) JSP Pages
Struts
Struts   in struts I want two struts.xml files. Where u can specify that xml files location and which tag u specified
struts
struts  which is the best book to study struts on own? please tell me   You can learn struts through the following books: 1)Programming Jakarta Struts By Chuck Cavaness 2)Professional Jakarta Struts By James Goodwill
Struts
Struts  How Struts is useful in application development? Where to learn Struts? Thanks   Hi, Struts is very useful in writing web... performance Java web applications that runs on Java enabled application servers. Struts
struts
struts  which is the best book to study struts on own? please tell me   You can learn struts through the following books: 1)Programming Jakarta Struts By Chuck Cavaness 2)Professional Jakarta Struts By James Goodwill
What are the advantages of using Stored Procedures?
What are the advantages of using Stored Procedures?  What are the advantages of using Stored Procedures
Java Struts - Struts
Java Struts  How we can create mvc architecture and its advantages?  Hi Friend, Please visit the following link: http://www.roseindia.net/struts/mvc-architecture.shtml Thanks
What are the advantages of Hibernate?
What are the advantages of Hibernate?  Hi, Tell me the advantages of Hibernate? ThanksADS_TO_REPLACE_1   Hibernate advantages: Database... at Hibernate advantages and disadvantages. ThanksADS_TO_REPLACE_6
Struts - Struts
Struts for beginners  struts for beginners example
struts
struts  how to start struts?   Hello Friend, Please visit the following links:ADS_TO_REPLACE_1 http://www.roseindia.net/struts/ http... through which you can easily learn the struts. ThanksADS_TO_REPLACE_2
struts
struts  i have no any idea about struts.please tell me briefly about struts?**   Hi Friend, You can learn struts from the given link:ADS_TO_REPLACE_1 Struts Tutorials Thanks
struts
struts  hi i would like to have a ready example of struts using "action class,DAO,and services" for understanding.so please guide for the same. thanks  Please visit the following link: Struts Tutorials
Struts
Struts  Am newly developed struts applipcation,I want to know how to logout the page using the strus   Please visit the following link: Struts Login Logout Application
Struts
Struts   1)in struts server side validations u are using programmatically validations and declarative validations? tell me which one is better ? 2) How to enable the validator plug-in file
struts
struts  please send me a program that clearly shows the use of struts with jsp
struts
struts  Hi, 1) can we write two controller classes in struts
struts
struts  Hi,... please help me out how to store image in database(mysql) using struts
struts
struts  how to generate bar code for continuous numbers in a loop using struts ... or atleast for a given number
Struts
Struts   How will you retrieve a collection of records from business logic to presentation logic in framework

Ads