From 77dd05853cc4193755d7a9278ed0420ae8a1de8f Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Wed, 17 Jun 2020 13:35:14 +0200 Subject: [PATCH] Polishing --- src/docs/asciidoc/web/webmvc-view.adoc | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/src/docs/asciidoc/web/webmvc-view.adoc b/src/docs/asciidoc/web/webmvc-view.adoc index cc476fa7b9..74972cb803 100644 --- a/src/docs/asciidoc/web/webmvc-view.adoc +++ b/src/docs/asciidoc/web/webmvc-view.adoc @@ -2,16 +2,15 @@ = View Technologies [.small]#<># -The use of view technologies in Spring MVC is pluggable, whether you decide to use -Thymeleaf, Groovy Markup Templates, JSPs, or other technologies, is primarily a matter -of a configuration change. This chapter covers view technologies integrated with -Spring MVC. We assume you are already familiar with <>. +The use of view technologies in Spring MVC is pluggable. Whether you decide to use +Thymeleaf, Groovy Markup Templates, JSPs, or other technologies is primarily a matter of +a configuration change. This chapter covers view technologies integrated with Spring MVC. +We assume you are already familiar with <>. -WARNING: The views of a Spring MVC application live within the internal trust boundaries of that -application. -Views have access to all the beans of your application context. -As such, it is not recommended to use Spring MVC's template support in applications where the -templates are editable by external sources, since this can have security implications. +WARNING: The views of a Spring MVC application live within the internal trust boundaries +of that application. Views have access to all the beans of your application context. As +such, it is not recommended to use Spring MVC's template support in applications where +the templates are editable by external sources, since this can have security implications. [[mvc-view-thymeleaf]] == Thymeleaf @@ -21,7 +20,7 @@ Thymeleaf is a modern server-side Java template engine that emphasizes natural H templates that can be previewed in a browser by double-clicking, which is very helpful for independent work on UI templates (for example, by a designer) without the need for a running server. If you want to replace JSPs, Thymeleaf offers one of the most -extensive set of features to make such a transition easier. Thymeleaf is actively +extensive sets of features to make such a transition easier. Thymeleaf is actively developed and maintained. For a more complete introduction, see the https://www.thymeleaf.org/[Thymeleaf] project home page. @@ -325,7 +324,7 @@ The `showErrors` macro takes a separator parameter (the characters that are used separate multiple errors on a given field) and also accepts a second parameter -- this time, a class name or style attribute. Note that FreeMarker can specify default values for the attributes parameter. The following example shows how to use the `formInput` -and `showWErrors` macros: +and `showErrors` macros: [source,xml,indent=0,subs="verbatim,quotes"] ---- @@ -840,7 +839,7 @@ The Spring Framework has a built-in integration for using Spring MVC with JSP an [[mvc-view-jsp-resolver]] === View Resolvers -When developing with JSPs, you typically declare a `InternalResourceViewResolver` bean. +When developing with JSPs, you typically declare an `InternalResourceViewResolver` bean. `InternalResourceViewResolver` can be used for dispatching to any Servlet resource but in particular for JSPs. As a best practice, we strongly encourage placing your JSP files in