What is Struts? Which Version of Struts to use?

By: Vilyams Emailed: 1645 times Printed: 2118 times    

Latest comments
By: rohit kumar - how this program is work
By: Kirti - Hi..thx for the hadoop in
By: Spijker - I have altered the code a
By: ali mohammed - why we use the java in ne
By: ali mohammed - why we use the java in ne
By: mizhelle - when I exported the data
By: raul - no output as well, i'm ge
By: Rajesh - thanx very much...
By: Suindu De - Suppose we are executing

What is Struts?

Apache Struts is a free open-source framework for creating Java web applications.

Web applications differ from conventional websites in that web applications can create a dynamic response. Many websites deliver only static pages. A web application can interact with databases and business logic engines to customize a response.

Web applications based on JavaServer Pages sometimes commingle database code, page design code, and control flow code. In practice, we find that unless these concerns are separated, larger applications become difficult to maintain.

One way to separate concerns in a software application is to use a Model-View-Controller (MVC) architecture. The Model represents the business or database code, the View represents the page design code, and the Controller represents the navigational code. The Struts framework is designed to help developers create web applications that utilize a MVC architecture.

The framework provides three key components:

  • A "request" handler provided by the application developer that is mapped to a standard URI.
  • A "response" handler that transfers control to another resource which completes the response.
  • A tag library that helps developers create interactive form-based applications with server pages.
The framework's architecture and tags are buzzword compliant. Struts works well with conventional REST applications and with nouveau technologies like SOAP and AJAX.

Which version of Struts to use?

A beta release of Struts 2 is now available, and a stable release is anticipated by the end of the year. In the meantime, the prudent course would be to start new projects with WebWork 2.2, at least until there is a stable release of Struts 2.0.

WebWork 2 is going to be supported for some time to come, just as Struts 1 will be supported. Both products have a robust user community, and many of us have mature projects in production that will never be migrated to a new major release.

Is Struts 1 obsolete?

No.

There is a robust and vibrant community of developers using Struts 1 in production, and we expect that thousands of teams will continue to base new projects on Struts 1, and continue to support existing projects, for many, many years to come.

New and improved extensions for Struts 1 continue to appear regularly. In 2006 alone, we've seen releases of Hoople, Strecks, JSP Control Tags, Sprout, Spring Web Flow, DWR, Calyxo, FormDef, and Java Web Parts. There are dozens of books and hundreds of articles available to help people get started with Struts 1 or improve the application they already have.

Since the merger, Struts 1 has gone on to release a new minor version, Struts 1.3, and new 1.x releases are being planned. Struts 1 continues to be the most popular and best supported web application framework for Java.

Of course, if you are starting a new project, and have your choice of frameworks, this might be a good time to consider whether you would like to continue to use Struts 1 or whether it's time to try Struts 2.

 


Struts Home | All Struts Tutorials | Latest Struts Tutorials

Sponsored Links

If this tutorial doesn't answer your question, or you have a specific question, just ask an expert here. Post your question to get a direct answer.



Bookmark and Share

Comments(11)


1. View Comment

i want some explanation about struts form field validation.

View Tutorial          By: ramizah at 2007-10-03 23:40:11
2. View Comment

i Want Struts Full Details with
Word format file
please send if you hava


View Tutorial          By: Kannan.R at 2007-10-04 00:40:27
3. View Comment

Could you please explain how to define our own validators in validator-rules.xml file please explain..Advance thanks

View Tutorial          By: xxxxx at 2010-06-30 06:41:14
4. View Comment

Hi,
tell me What is struts chaining with example.


View Tutorial          By: Mekala venkateswara at 2010-07-03 09:39:59
5. View Comment

I need Structs full notes with examples

View Tutorial          By: Thomas at 2012-10-24 11:18:11
6. View Comment

i want struts flow

View Tutorial          By: suresh at 2013-03-28 10:28:53
7. View Comment

its not sufficient add more details..

View Tutorial          By: vikas at 2013-04-12 12:06:01
8. View Comment

how does struts work in netbeans 6.9.1?what are the coding used for insert,update,select and delete the data in Struts?

View Tutorial          By: gunavathi at 2014-05-14 08:00:56
9. View Comment

can any beginners can try creating web pages
can v use it as like a application to learn??
as it is a open source ...


View Tutorial          By: jo at 2015-07-28 19:35:11
10. View Comment

how run struts in eclipse can explain with an example program .
how does struts work in eclipse?what are the coding used for insert,update,select and delete the data in Struts?


View Tutorial          By: Grace at 2015-08-14 02:41:28
11. View Comment

i want some brief realtime examples

View Tutorial          By: SURYA.C at 2015-08-20 05:06:18

Your name (required):


Your email(required, will not be shown to the public):


Your sites URL (optional):


Your comments:



More Tutorials by Vilyams
Types of Interviews
Getting started with Interview
What is Struts? Which Version of Struts to use?

More Tutorials in Struts
Configuring JDBC DataSources in Struts
Struts Classes
FAQ: Why was reload removed from Struts (since 1.1)?
FAQ: Why are my checkboxes not being set from ON to OFF?
Using JavaScript to submit a form in Struts
How to prepopulate a form in Struts
Simple example of using the requiredif Validator rule in Struts
Chaining actions in Struts
When is the best time to validate input in Struts
What is a Plug-in and how to use Java plug-ins with Struts?
7 Best Practices of Struts
Origin and Architecture of Struts
ActionErrors and ActionError in Struts
Tutorial on Struts Configuration File - struts-config.xml in Struts - from the book: Struts Survival Guide. Basics to Best Practices
Handling multiple buttons in HTML Form in Struts

More Latest News
Most Viewed Articles (in Struts )
Tutorial on Struts Configuration File - struts-config.xml in Struts - from the book: Struts Survival Guide. Basics to Best Practices
What is Struts? Which Version of Struts to use?
Installing and configuring Tomcat and Struts
Struts 1 vs Struts 2
ActionErrors and ActionError in Struts
Writing the first Struts application
Handling Duplicate Form Submissions in Struts
What is a Plug-in and how to use Java plug-ins with Struts?
Editing struts-config.xml in a Struts Application
ForwardAction in Struts
Downloading and installing Struts
Model 1 Architecture
Introduction to Struts Architecture
DispatchAction in Struts
Using JavaScript to submit a form in Struts
Most Emailed Articles (in Struts)
History of Struts
The directories and files of a Struts application
ActionErrors and ActionError in Struts
Using Checkbox & Radio Tags, html:select, html:options in Struts Forms
What is a Model View Controller (MVC) Model?
Creating the first application using Struts 2
Installing and configuring Tomcat and Struts
Model 1 Architecture
Using Multibox in Struts
ForwardAction in Struts
Using JavaScript to submit a form in Struts
WebWork 2 is now Apache Struts 2
Struts 1 vs Struts 2
Introduction to Struts Architecture
Creating Struts Modules