advertisement
Login | Register   
  Include Code  Search Tips
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   TIP BANK
Browse DevX
Download the Code!
Partners & Affiliates
advertisement
advertisement
advertisement
advertisement
 

View Rendering in Java: Templates Out, Groovy Builders In

Template engines have long been the de-facto standard for rendering views in Java web development. Learn why templates are far from ideal and how Groovy builders provide a literate solution for bringing view rendering back into your code. 


advertisement
he rationale for using template engines to render views in Java web development is generally two-fold:
  1. Templates can be created and maintained by HTML coders.
  2. Templates are easy for HTML coders to read, as they are based on HTML formatting.

In my experience, both arguments are flawed. The first one rarely happens, and the second holds true initially but becomes seriously compromised as soon as any presentation logic is introduced. Groovy builders, a literate solution for bringing view rendering back into your code, provide a better alternative to the template engine.


It's quick, easy and you get access to all the articles on DevX.
This registration/login is to allow you to read articles on devx.com.
Already a member?



advertisement