What is the difference between Struts 1.0 and Struts 1.1
The new features added to Struts 1.1 are
1. RequestProcessor class
2. Method perform() replaced by execute() in Struts base Action Class
3. Changes to web.xml and struts-config.xml
4.Declarative exception handling
5.Dynamic ActionForms
6.Plug-ins
7.Multiple Application Modules
8.Nested Tags
9.The Struts Validator
10.Change to the ORO package
11.Change to Commons logging
12.Removal of Admin actions
13. Deprecation of the GenericDataSource
Struts 1.1 has method execute in action class where as Struts 1.0 contains performexecute() method
new concepts in struts1.1 are
1)changes to the web.xml file as well as Struts-config.xml
2)performExcecute() is replaced by execute() method
3)plug-ins added
4)RequestProcessor class..etc
The main differences are
1. In Action class Perform() method was replaced by execute() method.
2. DynaActionForms are added.
3. Tiles Concept is introduced.
4. We can write our own Controller by Inheriting RequestProcessor class. i.e., nothing but we can override the process() method of the RequestProcessor class.
Apart from these some updates in web.xml and Struts-Config.xml.
As per my point of view, from struts 1.1 it is recommended to use ActionMessages instead of ActionErrors , ActionMessage instead of ActionError and SaveMessages in place of saveErrors
Differences between Struts 1.1 and 1.2:-
1) Advised for replacement of ActionErrors with ActionMessages
2) org.apache.struts.Action statics: Use org.apache.struts.Global statics instead
3) Many utility methods previously found in org.apache.struts.utils.RequestUtils have been moved to org.apache.struts.taglibs.TagUtils or org.apache.struts.utils.ModuleUtils.
4) Introduction of MappingDispatchAction : A new standard Action that dispatches to a method named by the ActionMapping parameter.
5) Introduction of DigestingPlugIn - A new standard PlugIn that helps you create your own object graph in application scope. This is handy way to create business objects for Actions to call.
6) Addition of Action attributes - An Action attribute has been added to the html img tag, to match what's available on the html link tag now.
7) Additon of Module attribute - A new "module" attribute is available on the forward element as well as several of the core tags. This attribute allows you to specify another module by name (or "prefix") to create direct links between modules. The new module attribute is preferred to the contextRelative attribute and can often be used in lieu of a "SwitchAction".
The main differences are
1. In Action class Perform() method was replaced by execute() method.
2. DynaActionForms are added.
3. Tiles Concept is introduced.
4. We can write our own Controller by Inheriting RequestProcessor class. i.e., nothing but we can override the process() method of the RequestProcessor class.
-------------------------------------------------------------------------------------------------------
0 comments
Post a Comment