Prev | Current Page 153 | Next

Frank Zammetti

"Practical DWR 2 Projects"

In point of fact, it??™s not truly doing that, but it
very much gives the appearance that it is, and really for all practical purposes you can treat it as if it were
really doing it. Like I said, don??™t worry about it much now, we??™ll get to this in the next chapter.
Configuring DWR Part 2: dwr.xml
The next topic of conversation is the DWR-specific configuration housed in the dwr.xml file.
DWR actually offers two ways of configuring it, through Java 5 (and up) annotations and the
dwr.xml file. You can in fact do everything you do with dwr.xml with annotations instead, or
you can supplement dwr.xml with annotations, but one step at a time here??”let??™s look at the
configuration file approach first.
The basic structure of the dwr.xml file can be shown concisely in image form, and
Figure 2-11 is just such an image.
CHAPTER 2 n GETTING TO KNOW DWR 70
Figure 2-11. Graphical representation of the structure of dwr.xml
If you would instead prefer all the gory details, then Listing 2-9 is just the ticket for you:
it??™s the dwr.xml DTD. Of course, this is the kind of thing you should only read if you??™re having
trouble sleeping (I kid . . . reading a DTD, especially when commented well as this one is, gives
you a one-stop shop kind of reference for a given XML file).


Pages:
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165