Home / CSE MCQs / Struts 2 ::

CSE MCQs :: Struts 2

  1. The Struts Framework is a standard for developing well-architected Web applications, it has the following features?
  2. A.
    Open Source
    B.
    Model View Controller
    C.
    Implement the JSP Model 2 Architecture
    D.
    All mentioned above

  3. Abbreviate the term OGNL?
  4. A.
    Object-Goal Navigation Language
    B.
    Object- Graph Navigation Language
    C.
    Oriented-Graph Navigation Language
    D.
    None of the above

  5. Which method is necessary for Action class?
  6. A.
    valuator()
    B.
    reset()
    C.
    findForward()
    D.
    execute()

  7. In interceptor which is used to display the intermediate result?
  8. A.
    Params Interceptor
    B.
    Custom Interceptor
    C.
    ExecAndWait Interceptor
    D.
    Prepare Interceptor

  9. Which of the following tags in struts-config.xml file defines the availability of necessary Struts JSP custom tag libraries?
  10. A.
    jsp-lib
    B.
    struts-taglib
    C.
    taglib
    D.
    jsp-taglib

  11. What is defeult result type?
  12. A.
    dispatcher
    B.
    FreeMaker
    C.
    redirect
    D.
    None of the above

  13. In Struts, how can we access Java beans and their properties?
  14. A.
    Row Library
    B.
    Tag Library
    C.
    Column Library
    D.
    Table Library

  15. Struts combines which of these in to a unified Framework?
  16. A.
    Java Servlets
    B.
    Java Server pages
    C.
    Custom tags and Message Resources
    D.
    All of the above

  17. ActionServlet, RequestProcessor and Action classes are the components of
  18. A.
    View
    B.
    Model
    C.
    Controller
    D.
    Deployment

  19. In the Action interface which constant indicates that action execution is successful but no result should be shown to the user?
  20. A.
    Success
    B.
    Login
    C.
    Input
    D.
    None