• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/8

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

8 Cards in this Set

  • Front
  • Back
In Spring MVC, what is the central object that a user first connects to through a web browser?
the DispatcherServlet
What are the typical Spring MVC controllers to subclass from? (without annotations)
-- AbstractController
-- AbstractCommandController
-- SimpleFormController
What is the method for the Controller interface in Spring MVC? (without annotations)
public interface Controller {

public ModelAndView handleRequest(
HttpServletRequest request,
HttpServletResponse response)
throws Exception;

}
What are the DispatcherServlet initialization parameters?
contextClass -- class that implements Web application context (XmlWebApplicationContext by default)

contextConfigLocation -- String that states where contexts are defined. If beans are defined with the same number of multiple contexts, the last one in wins.

namespace -- the namespace of the WebApplicationContext (by default, it's [servlet-name]-servlet.xml
What is a ViewResolver in Spring MVC?
A View Resolver is a component that is capable of resolving view names to views.
In Spring MVC, what are Handler Mappings?
Handler Mappings handle the execution of a list of pre- and post-processors and controllers that will be executed if they match certain criteria.

(e.g., a matching URL specified with the controller)
<web-app>
...
<servlet>
<servlet-name>golfing</servlet-name>
<servlet-class>org....DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
...
</web-app>

Given this web.xml file, what other file by default MUST appear in WEB-INF?
golfing-servlet.xml

The naming convention for Spring MVC web configs is [servlet-name]-servlet.xml
What is the main class that operates as a front controller for Spring MVC?
DispatcherServlet