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



Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


md farooq
struts
1 Answer(s)      3 years and 9 months ago
Posted in : Framework


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


Advertisement
View Answers

February 11, 2011 at 3:46 PM


Advantages of struts

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. Strutsconfig.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 Strutsconfig.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).

Learn struts, you can learn struts through the link

Struts Tutorials



Related Tutorials/Questions & Answers:
STRUTS
STRUTS  MAIN DIFFERENCES BETWEEN STRUTS 1 AND STRUTS 2
STRUTS
STRUTS  MAIN DIFFERENCES BETWEEN STRUTS 1 AND STRUTS 2
Advertisements
Struts
Struts   How to retrive data from database by using Struts
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
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 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  what are the 4 methods of struts framework
Struts
Struts  Tell me good struts manual
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  i have no any idea about struts.please tell me briefly about struts?**   Hi Friend, You can learn struts from the given link: Struts Tutorials Thanks
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  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   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
Setter methods of form bean class in Struts applications  who calls the setter methods of form bean class in struts applications
struts
struts   Hi how struts flows from jsp page to databae and also using validation ? Thanks Kalins Naik
Struts
Struts  Hi i am new to struts. I don't know how to create struts please in eclipse help me
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
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 to start struts?   Hello Friend, Please visit the following links: http://www.roseindia.net/struts/ http://www.roseindia.net... can easily learn the struts. Thanks
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  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  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
Struts for beginners  struts for beginners example
 

 

 

DMCA.com