Prev | Current Page 343 | Next

Frank Zammetti

"Practical DWR 2 Projects"


??? We??™ll use a database for storing the wiki content, Apache??™s Derby to be specific, and let??™s
try and avoid writing as much low-level JDBC code as we can using the Spring library??™s
JDBC support.
??? DWiki will support the concept of ???locking??? an article for editing, and the lock will last
for some configurable period of time.
Naturally, DWR will be used to connect the user interface with the back end, which as
you??™ll see allows the amount of code we have to write to be not nearly as large as it otherwise
could have been.
Before we can really get into dissecting the code of the application, we should discuss a
few key pieces of technology that we??™ll be making use of, namely the FreeMarker templating
library, Apache??™s Derby database, and the Spring library??™s JDBC support.
CHAPTER 5 n SHARE YOUR KNOWLEDGE: DWIKI, THE DWR-BASED WIKI 190
FreeMarker
For no real reason other than I like being a mite unpredictable from time to time, let??™s start
with FreeMarker. And because I also like being lazy whenever humanly possible (I worship at
the altar of Homer Simpson for sure), I??™ll explain what FreeMarker is by liberally interpreting
the description on the FreeMarker home page (if you take ???liberally interpret??? to mean quote
directly, that is!).


Pages:
331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355