Saturday, November 20, 2010

What is Struts ?

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

Difference Between Struts 1 and Struts 2


Struts1 was an action- oriented framework that implemented a Model-View-Controller (MVC) separation of concerns in its architecture.
Struts2 is a brand new implementation of those same MVC principles in an action-oriented framework.

Difference Between Struts 1 and Struts 2.

Why we need MVC framework?

Why we need Struts ?

  To Bind request parameters to Java types
  To Validate data
  To Make calls to business logic
  To Make calls to the data layer
  To Render presentation layer (HTML, and so on)
  To Provide internationalization and localization                                    
 
STRUTS2 FEATURES: 


  Interceptors for layering cross-cutting concerns away from action logic;
  Annotation-based configuration to reduce or eliminate XML configuration;
  Powerful expression language, Object-Graph Navigation Language(OGNL), that transverses the entire framework.
  Mini-MVC–based tag API that supports modifiable and reusable UI components.
  The framework's architecture and tags are buzzword compliant.
  Struts works well with conventional REST applications and with nouveau technologies like SOAP and AJAX.


Resources for Understanding and Using Struts

Sturts developers guide Link http://struts.apache.org/2.x/docs/core-developers-guide.html

Struts examples http://struts.apache.org/2.x/docs/strutsxml-examples.html


No comments: