And with that, you??™ve now written your first DWR application, even if an incredibly simplistic
one!
The DWR Test/Debug Page
Before we get into the details of DWR configuration, I want to point out another facility that
DWR gives you automatically when you use it in your application, and that is the test/debug
page. If you access the URL http://localhost:8080/firstdwr/dwr/index.html, you??™ll see the
page shown in Figure 2-8.
Now granted, that doesn??™t look like any big deal. But, go ahead and click the link and you??™ll
see something infinitely more interesting! Since DWR knows about our MathDelegate class, it
can automatically generate a page that shows us what methods are available on the object,
how to access them, and what imports we??™ll need, and even provides a method to actually test
these methods! Figures 2-9 and 2-10 show what this page looks like (the page scrolls larger
CHAPTER 2 n GETTING TO KNOW DWR 65
than I could capture at once, that??™s why it??™s broken into two figures, but understand both of
these represent a single page).
Figure 2-8. The DWR test/debug page
Figure 2-9. The MathDelegate test/debug page, part 1
CHAPTER 2 n GETTING TO KNOW DWR 66
Figure 2-10.
Pages:
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158