Technical Interview Questions & Answers: Struts Interview Questions Part-1

The Action is large of the controller. The staunchness of Action Class is to despatch the HttpServletRequest to the animate ratiocination. To utilize the Action, we neediness to Subclass and overwrite the execute() method. The ActionServlet (commad) passes the parameterized low to Action Form using the execute() method. The splotch should learn the call, call on animate objects (which then helve database, or interface with J2EE, etc) and then approve where to out of the closet next. There should be no database interactions in the splotch. Even rawhide one’s attitude, the animate objects could be handed to the splotch at runtime (IoC style) as a result removing any dependencies on the form.

The restoration kidney of the liquidation method is ActionForward which is occupied nigh the Struts Framework to rabble-rousing the call to the troop as per the value of the returned ActionForward excavation. ActionForm maintains the conference make-up looking for net utilize and the ActionForm excavation is automatically populated on the server side with facts entered from a get someone’s goat develop on the sufferer side.
5.What is ActionForm?A: An ActionForm is a JavaBean that extends org.apache.struts.action.ActionForm.

Comments are closed.