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

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

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

  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

  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

  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

  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

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

  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

  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