The MathDelegate test/debug page, part 2
You can even see in Figure 2-9 where I??™ve actually tested the add() method. The result is
shown next to the Execute button. Any of the methods can be tested in this fashion, without
you having to have written a single bit of code!
This page also gives you some helpful notes at the bottom about various situations that
you will want to be aware of. For instance, the note about overloaded methods is a good one to
keep in mind. As it says, because JavaScript doesn??™t support overloaded methods (you can fake
it, but it??™s not true overloading), this is something you need to be aware of when writing your
server-side classes.
All in all, this is a fantastic facility that DWR offers that you will want to keep in mind for
sure. It can save you all sorts of time and effort when getting things working.
Configuring DWR Part 1: web.xml
We??™ll begin looking at how to configure DWR, and the logical starting point is the web.xml file.
The absolute minimum you could add to an existing web.xml to get DWR up and running is
this:
CHAPTER 2 n GETTING TO KNOW DWR 67
dwr-invoker
org.directwebremoting.
Pages:
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159