May 20, 2004

A Practical Guide for Integrating EJB and Struts

ou’ll find plenty written about building and deploying EJB, and perhaps equally as much about building applications with the Struts framework. But what about leveraging EJB and Struts together? This tutorial lays out a complete step-by-step guide to integrating these two technologies, developing EJB components and incorporating them into Struts.

Prefer Templates to Macros

Because macros do not behave as function calls but merely as text substitutions, they might exhibit strange behaviors during complex calls. For instance: #define mul (t) t*t*tmul(3+3) gives 24 though the expected result is 216. Templates, on the other hand, follow the semantics of function definition and function call. They