■NoteBecause all of the other JavaScript files have a /dwr/*-typeURL, they will all be served up by the
DWR servlet according to the web.xmlmapping we looked at in Listing B-2.
Let’s put all this together and show it in action (or at least as much as we can in the static
pages of a book). Figure B-2 shows the index.htmlpage loaded in the browser. It contains a
couple of tables in the main area of the page that are hidden with CSS attributes.
Figure B-2.The DWR PetClinic home page
Listing B-5 shows one of the hidden tables in the left half of the blank area of the screen.
Note how the table body is given an idattribute, but is left empty.
382 APPENDIX B ■AJAX AND DWR
584X_Ch14_AppB_FINAL 1/30/06 12:55 PM Page 382