Asciidoc revision (minor backport for addressing build-time warnings)
This commit is contained in:
@@ -1864,18 +1864,18 @@ A simple PDF view for a word list could extend
|
||||
}
|
||||
----
|
||||
|
||||
A controller may return such a view either from an external view definition
|
||||
A controller can return such a view either from an external view definition
|
||||
(referencing it by name) or as a `View` instance from the handler method.
|
||||
|
||||
|
||||
|
||||
[[mvc-view-document-pdf]]
|
||||
[[mvc-view-document-excel]]
|
||||
=== Excel views
|
||||
|
||||
Since Spring Framework 4.2,
|
||||
`org.springframework.web.servlet.view.document.AbstractXlsView` is provided as a base
|
||||
class for Excel views based on POI, with specialized subclasses `AbstractXlsxView`
|
||||
and `AbstractXlsxStreamingView`, superseding the outdated `AbstractExcelView` class.
|
||||
class for Excel views. It is based on Apache POI, with specialized subclasses (`AbstractXlsxView`
|
||||
and `AbstractXlsxStreamingView`) that supersede the outdated `AbstractExcelView` class.
|
||||
|
||||
The programming model is similar to `AbstractPdfView`, with `buildExcelDocument()`
|
||||
as the central template method and controllers being able to return such a view from
|
||||
|
||||
@@ -230,7 +230,7 @@ The table below lists the special beans detected by the `DispatcherHandler`:
|
||||
|===
|
||||
| Bean type| Explanation
|
||||
|
||||
| <<mvc-handlermapping,HandlerMapping>>
|
||||
| HandlerMapping
|
||||
| Map a request to a handler along with a list of
|
||||
<<mvc-handlermapping-interceptor, interceptors>> for pre- and post-processing.
|
||||
The mapping is based on some criteria the details of which vary by `HandlerMapping`
|
||||
@@ -857,12 +857,12 @@ modify corresponding `HttpSession` attributes against the current `HttpServletRe
|
||||
==== Locale interceptor
|
||||
|
||||
You can enable changing of locales by adding the `LocaleChangeInterceptor` to one of the
|
||||
handler mappings (see <<mvc-handlermapping>>). It will detect a parameter in the request
|
||||
and change the locale. It calls `setLocale()` on the `LocaleResolver` that also exists
|
||||
in the context. The following example shows that calls to all `{asterisk}.view` resources
|
||||
containing a parameter named `siteLanguage` will now change the locale. So, for example,
|
||||
a request for the following URL, `http://www.sf.net/home.view?siteLanguage=nl` will
|
||||
change the site language to Dutch.
|
||||
`HandlerMapping` definitions. It detects a parameter in the request and changes the locale
|
||||
accordingly, calling the `setLocale` method on the `LocaleResolver` in the dispatcher's
|
||||
application context. The next example shows that calls to all `{asterisk}.view` resources
|
||||
that contain a parameter named `siteLanguage` now changes the locale. So, for example,
|
||||
a request for the URL, `http://www.sf.net/home.view?siteLanguage=nl`, changes the site
|
||||
language to Dutch. The following example shows how to intercept the locale:
|
||||
|
||||
[source,xml,indent=0]
|
||||
[subs="verbatim"]
|
||||
@@ -999,7 +999,7 @@ provide access to resolved parts in addition to exposing them as request paramet
|
||||
|
||||
|
||||
[[mvc-multipart-resolver-commons]]
|
||||
==== Apache FileUpload
|
||||
==== Apache Commons FileUpload
|
||||
|
||||
To use Apache Commons FileUpload, simply configure a bean of type
|
||||
`CommonsMultipartResolver` with the name `multipartResolver`. Of course you also need to
|
||||
|
||||
Reference in New Issue
Block a user