Explorar el Código

Fix links for u-view-templates

Greg Turnquist hace 13 años
padre
commit
985257da90
Se han modificado 2 ficheros con 4 adiciones y 4 borrados
  1. 2
    2
      README.ftl.md
  2. 2
    2
      README.md

+ 2
- 2
README.ftl.md Ver fichero

@@ -95,7 +95,7 @@ The `@RequestMapping` annotation ensures that HTTP requests to `/greeting` are m
95 95
 
96 96
 The implementation of the method body creates and returns a new `Greeting` object with `id` and `content` attributes based on the next value from the `counter`, and formats the given `name` by using the greeting `template`.
97 97
 
98
-A key difference between a traditional MVC controller and the RESTful web service controller above is the way that the HTTP response body is created. Rather than relying on a view technology (such as [JSP][u-jsp]) to perform server-side rendering of the greeting data to HTML, this RESTful web service controller simply populates and returns a `Greeting` object. The object data will be written directly to the HTTP response as JSON.
98
+A key difference between a traditional MVC controller and the RESTful web service controller above is the way that the HTTP response body is created. Rather than relying on a [view technology][u-view-templates] to perform server-side rendering of the greeting data to HTML, this RESTful web service controller simply populates and returns a `Greeting` object. The object data will be written directly to the HTTP response as JSON.
99 99
 
100 100
 To accomplish this, the [`@ResponseBody`][] annotation on the `greeting()` method tells Spring MVC that it does not need to render the greeting object through a server-side view layer, but that instead that the greeting object returned _is_ the response body, and should be written out directly.
101 101
 
@@ -155,7 +155,7 @@ Congratulations! You've just developed a RESTful web service with Spring.
155 155
 
156 156
 [u-rest]: /understanding/REST
157 157
 [u-json]: /understanding/JSON
158
-[u-jsp]: /understanding/JSP
158
+[u-view-templates]: /understanding/view-templates
159 159
 [jackson]: http://wiki.fasterxml.com/JacksonHome
160 160
 [u-war]: /understanding/WAR
161 161
 [u-tomcat]: /understanding/Tomcat

+ 2
- 2
README.md Ver fichero

@@ -220,7 +220,7 @@ The `@RequestMapping` annotation ensures that HTTP requests to `/greeting` are m
220 220
 
221 221
 The implementation of the method body creates and returns a new `Greeting` object with `id` and `content` attributes based on the next value from the `counter`, and formats the given `name` by using the greeting `template`.
222 222
 
223
-A key difference between a traditional MVC controller and the RESTful web service controller above is the way that the HTTP response body is created. Rather than relying on a view technology (such as [JSP][u-jsp]) to perform server-side rendering of the greeting data to HTML, this RESTful web service controller simply populates and returns a `Greeting` object. The object data will be written directly to the HTTP response as JSON.
223
+A key difference between a traditional MVC controller and the RESTful web service controller above is the way that the HTTP response body is created. Rather than relying on a [view technology][u-view-templates] to perform server-side rendering of the greeting data to HTML, this RESTful web service controller simply populates and returns a `Greeting` object. The object data will be written directly to the HTTP response as JSON.
224 224
 
225 225
 To accomplish this, the [`@ResponseBody`][] annotation on the `greeting()` method tells Spring MVC that it does not need to render the greeting object through a server-side view layer, but that instead that the greeting object returned _is_ the response body, and should be written out directly.
226 226
 
@@ -335,7 +335,7 @@ Congratulations! You've just developed a RESTful web service with Spring.
335 335
 
336 336
 [u-rest]: /understanding/REST
337 337
 [u-json]: /understanding/JSON
338
-[u-jsp]: /understanding/JSP
338
+[u-view-templates]: /understanding/view-templates
339 339
 [jackson]: http://wiki.fasterxml.com/JacksonHome
340 340
 [u-war]: /understanding/WAR
341 341
 [u-tomcat]: /understanding/Tomcat