Struts framework has been organized in twelve “top leveled packages”. It consists of three hundred interfaces and classes. Interfaces as well as classes are provided by struts framework to work along with controller or presentation, with custom tag libraries support.
The Struts view is detailed here: The Struts Controller Components: All user requests are handled by the Struts Action Servlet. A request is been received, URL is interpreted and Configuration files
Struts1 extends the abstract base class by its action class. The problem with struts1 is that it uses the abstract classes rather than interfaces.While in Struts 2, an Action class implements an Action interface, along with other interfaces use optional and custom services. Struts 2 provides a base ActionSupport class that implements commonly used interfaces. Although an Action interface is notnecessary, any POJO object along with an execute signature can be used as an Struts 2 Action object.Struts
Simple POJO based ActionsThread SafeSimplified testabilityAJAX SupportjQuery PluginAJAX Client Side ValidationDojo Plugin (deprecated)Template SupportEasily extended with PluginsResult types are supportedREST Plugin (Extension-less URLs, REST based Actions)Spring Plugin (Dependency Injection)JFreechart Plugin (Charts)Rome Plugin (RSS Feeds)Convention Plugin (Action Configuration through Annotations & Conventions)Hibernate PluginjQuery Plugin
By using web form in a typical or standard Java EE web application, information gets submitted to the server. Information is then sent on to the Java Servlet, which will be performing:
• Information Processing
• Interaction with a database
• HTML formatted response is produced.
This information could also be passed on to a JSP that brings out the similar results. For larger projects, they are not suitable and it becomes tough to do the separation of the
Apache Struts are used for development of the web based application, being an open sourced framework. It is free.
Web based applications are entirely different as compared to the typical sites because the web applications make dynamic responses for request. They are dynamic in their nature and may interact with business logic engines and databases for customizations of responses.
Web applications are based at:
• Java Server Pages
• Page design code