Home / CSE MCQs / Struts 2 ::

CSE MCQs :: Struts 2

  1. How to override default configuration of struts 2
  2. A.
    Use struts.properties
    B.
    Use custom file name and register it
    C.
    Both a and b
    D.
    None

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Struts supports which of these model components?
  4. A.
    JavaBeans
    B.
    EJB
    C.
    CORBA
    D.
    JDO
    E.
    All of these

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. What does validate() method of ActionForm returns?
  6. A.
    ActionErrors
    B.
    ActionForward
    C.
    ActionMapping
    D.
    ActionError

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. Which is used to make asynchronous request i.e. it doesn't block the user and it sends only required field data to the server side not all, So it makes the performance fast?
  8. A.
    AJAX Support
    B.
    Integration Support
    C.
    Various Tag Support
    D.
    Theme and Template Support

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Which type of validation we must implement the Validateable interface (or extend ActionSupport class) and provide the implementation of validate method?
  10. A.
    By Input Validation
    B.
    By Ajax Validation
    C.
    By Custom Validation
    D.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Which of the following delegates the request handling to the RequestProcessor instance?
  12. A.
    ActionServlet
    B.
    Action class
    C.
    Deployment descriptor
    D.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. What is the role of ActionContextCleanUp class in struts 2?
  14. A.
    Handles special clean up task when filters need access to an initialized struts framework
    B.
    Works like garbage collector in java
    C.
    All of these
    D.
    None

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Which of the following methods is overridden by Action class?
  16. A.
    run()
    B.
    destroy()
    C.
    execute()
    D.
    service()

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. reset() method signature in ActionForm?
  18. A.
    public void reset(ActionMapping mapping, HttpServletRequest request)
    B.
    public ActionErrors reset(ActionMapping mapping, HttpServletRequest request)
    C.
    public ActionError reset(ActionMapping mapping, HttpServletRequest request)
    D.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. Which of the following tag is used to render a I18n text message?
  20. A.
    set tag
    B.
    text tag
    C.
    url tag
    D.
    push tag

    View Answer

    Workspace

    Discuss Discuss in Forum