Strutsv1 vs Struts v2

v1 vs v2:

  • - Struts 1 Actions are singletons and must be thread-safe since there will only be one instance of a class to handle all requests for that Action.
  • - Struts 2 Action objects are instantiated for each request, so there are no thread-safety issues.
  • - Struts1 uses ActionForm
  • - Struts 1 uses the standard JSP mechanism for binding objects into the page context for access.
  • - Struts 2 uses a "ValueStack" technology so that the taglibs can access values without coupling your view to the object type it is rendering. 
  • - Struts 1 supports manual validation via a validate method on the ActionForm, or through an extension to the Commons Validator. 
  • - Struts 2 supports manual validation via the validate method and the XWork Validation framework. The Xwork Validation Framework supports chaining validation into sub-properties using the validations defined for the properties class type and the validation context.
  • - Struts 1 supports separate Request Processors (lifecycles) for each module, but all the Actions in the module must share the same lifecycle
  • - Struts 2 supports creating different lifecycles on a per Action basis via Interceptor Stacks. Custom stacks can be created and used with different Actions, as needed.