Struts

Struts Objective Questions And Answers
More interview questions and answers

What is struts? 1.A Technology 2.A Frameworks 3.A Java Development Tool Kit 4.A Language.

How can we retrieve keyed values from a previously defined resource bundle? a. Using b. Using c. Using d. Using

Which method is necessary for Action class? a.valuator() b.reset() c.findForward() d.delet() e.execute()

The parameters passed into execute() method is? A. ActionMapping mapping, ActionForm form, ServletRequest request, ServletResponse response. B. Mapping mapping, ActionForm form, ServletRequest request, ServletResponse response. C. ActionMapping mapping, Form form, ServletRequest request, ServletResponse response. D. ActionMapping mapping, ActionForm form, ServletRequest request, Response response. E. ActionMapping mapping, ActionForm form, Servlet request, ServletResponse response.

What is return type of execute() method? A. void B. String C. int D. ActionForward E. ActionMapping F. ActionForm

Where key will generated ? A. In Action class B. In ActionForm Class D. In ActionMapping Class E In ActionServlet Class

We can create how many struts config file in an struts application? A. Only One B. Only Two B. Zero C. As many we needed D. All are wrong.

Which one is correct? A. B. C.

Which of following is not struts version ? 1. Struts 1.3.8, Struts 1.2.8 2. Struts 1.2.7,Struts 1.0.2 3. Struts 2.1.8, Struts 2.0.11.2 4. Struts 2.0.11.1, Struts 2.0.6 5 Struts 3.0.11.1, Struts 1.0.11

Struts application architectures based on the Model-View-Controller (MVC)-1 design pattern 1.Yes 2.No

Struts application architectures based on the Model-View-Controller (MVC)-2 design pattern 1.Yes 2.No

The ActionServlet class and Action classes are used are controller into struts application 1.Yes 2.No

Choose one of the following which must be have only single class for an application 1.Subclass of ActionServlet class 2. Subclass of Action classes 3. Subclass of ActionForm classes 4. None

How many ActionServlet class for an application 1.1 1.2 3.3 4.4 5. As Many as we wise.

How many Action class for an application 1.1 1.2 3.3 4.4 5. As Many as we wise

How many Action class for a subclass of ActionForm 1.1 1.2 3.3 4.4 5. As Many as we wise

How many web.xml you can use file for an application 1.1 1.2 3.3 4.4 5. As Many as we wise

How many of ôstruts-config.xml file for an application 1.1 1.2 3.3 4.4 5. May be more than one

How many of xml files must have use in validate framework 1.1 1.2 3.3 4.4 5. May be more than one

Which are primary components of controller? 1.Action Class 2.A servlet of class ActionServlet 3.A class of ActionForm 4.A class of ActionMapping

A servlet of class ActionServlet is configured by 1.Defining a set of Action Class 2.Defining a set of ActionMappings 3.Defining a set of ActionForm 4.None

Choose true for ActionFrom 1 ActionForm beans are closer to View the than the Model. 2.ActionForm beans are closer to the Model than the View 3.Store additional information from pervious GUI. 4.All of the above 5. None

Choose true for ActionForm bean have 1.Only property getter and property setter methods, 2.Business logic 3.Specific methods to be implemented. 4.All of the above 5. None

The ActionForm provides an validate() methods . Struts will automatically validate the input from the form and calls this method. 1.Yes 2.No

Which of following arguments will be passed into validate() method? 1.ActionMapping mapping 2.HttpServletRequest request 3.HttpResponse response 4.ActionForm form 5.None

Which of following arguments will be passed into perform() method? 1.ActionMapping mapping, 2.ActionForm form, 3.ServletRequest request, 4.ServletResponse response 5.None

Choose true one 1.Model in Struts can interact with any standard data access technology, including EJB, JDBC, and ORB. 2.View in Struts works well with JSP, including JSTL and JSF, as well as Velocity Templates, XSLT, and other presentation systems. 3.1,2 4.None