Expert Spring MVC and Web Flow
File Layout and Distribution The file layout for the web application should now look like the one in Figure 4-2. Figure 4-2.Web ...
Start the Application You are now ready to deploy the application. The deployment process is specific to each servlet container. ...
Figure 4-4.Sequence for HomeController Summary We have built, from the ground up, a Spring MVC application complete with a servi ...
Building the Search for Flights Use Case To review, the second use case allows the user to search for a flight by departure loca ...
The first thing to note about SimpleFormControlleris that it is intended to handle both the viewing of the form and the submissi ...
Summary Command beans are POJOs that encapsulate the data from a form submission. Command bean classes must have getters and set ...
The constructor is used to declaratively configure the class, defining the command bean, the command name, and the view names fo ...
The real action happens inside onSubmit(), the life cycle callback for handling the com- mand bean when the form is submitted. I ...
As you review Listing 4-18, don’t worry about those <spring:nestedPath>and <spring:bind>tags; we will explain them m ...
(yyyy-MM-dd HH) This XHTML will generate a page like the example in Figure 4-6. Figure 4-6.Search for Flights fo ...
Spring JSP Tags For the first time, we have used Spring-specific tags in our XHTML, namely the <spring:nestedPath>and < ...
■Tip Using the convenience tags for form elements (available for JSP, Velocity, and FreeMarker) can hide much of the usage of th ...
</tr> </thead> <tbody> <c:forEach items="${flights}" var="flight"> <tr> <td>${flight.numberO ...
when conversion is required from the simple Strings returned by the HttpServletRequestto more complex types found in the command ...
...
The Processing Pipeline Spring MVC applications are highly configurable and extensible, and most of that power comes from its so ...
Functionality Overview As you can see, the DispatcherServletprovides Spring MVC much more functionality than Controllers and Vie ...
flexible and partitioned mapping configurations. Typically a request is mapped to a handler (Controller) via a URL, but other im ...
You saw the declaration and configuration of this servlet in Chapter 4. To quickly review, this servlet is configured in your ap ...
technique also allows you to create modular configurations of request handlers and then chain them together at runtime. The Disp ...
«
1
2
3
4
5
6
7
8
9
10
»
Free download pdf