• Struts 1 and 2 difference,  Struts 1 Vs 2

    Difference between Struts 1.X and 2

    Features Struts 1.X Struts 2 Action classes Struts1 extends the abstract base class by its action class. The problem with struts1 is that it uses the abstract classes rather than interfaces. In Struts 2, an Action class implements an Action interface, along with other interfaces use optional and custom services. Struts 2 provide a base ActionSupport class that implements commonly used interfaces. Although an Action interface is not necessary, any POJO object along with an execute signature can be used as an Struts 2 Action object. Threading Model Struts 1 Actions are singletons therefore they must be thread-safe because only one instance of a class handles all the requests for…

    Comments Off on Difference between Struts 1.X and 2
  • Struts 1 and 2 difference,  Struts 1 Vs 2

    Difference between Struts 1.X and 2

    Features Struts 1.X Struts 2 Action classes Struts1 extends the abstract base class by its action class. The problem with struts1 is that it uses the abstract classes rather than interfaces. In Struts 2, an Action class implements an Action interface, along with other interfaces use optional and custom services. Struts 2 provide a base ActionSupport class that implements commonly used interfaces. Although an Action interface is not necessary, any POJO object along with an execute signature can be used as an Struts 2 Action object. Threading Model Struts 1 Actions are singletons therefore they must be thread-safe because only one instance of a class handles all the requests for…

    Comments Off on Difference between Struts 1.X and 2