Templates and Velocity
So far we’ve seen how the use of development frameworks and judicious use of design patterns can help to separate the concerns of our web applications. For the most part with concentrated on the main core of our application, and how to separate our application logic. Although not necessarily as important as the business logic, we can take this process one step further and separate our application’s Java code from our presentation through the use of templates. So in this chapter, we will describe the problems that template engines can solve, and how to use one such template engine, Velocity.
KeywordsVariable Reference Java Code Java Application Shopping Cart Java Object
Unable to display preview. Download preview PDF.