What are the core classes of Struts

Q

What are the core classes of Struts?

✍: Guest

A

Action, ActionForm, ActionServlet, ActionMapping, ActionForward are basic classes of Structs.

An Action class in the struts application extends Struts 'org.apache.struts.action.Action" Class. Action class acts as wrapper around the business logic and provides an inteface to the application's Model layer. It acts as glue between the View and Model layer. It also transfers the data from the view layer to the specific business process layer and finally returns the procssed data from business layer to the view layer.

An ActionForm is a JavaBean that extends org.apache.struts.action.ActionForm. ActionForm maintains the session state for web application and the ActionForm object is automatically populated on the server side with data entered from a form on the client side.

2007-11-29, 5705👍, 0💬