Summary

This chapter covered using JSP to create dynamic Web content. Since we know that we don't want to place too much Java code on the JSP page in scriptlets, we need to have a facility for moving Java code off the page. We have two Java technologies that allow us to do this: using JSP with JavaBeans and using custom tag libraries.

Both approaches to using Java classes on JSP pages were covered in this chapter, using an example that created a set of calendar utilities. The first example used JavaBeans to display an HTML-formatted monthly calendar. Then, to demonstrate the same approach using a custom tag library, the code required to implement the calendar utility as a custom tag library was shown. Finally, we discussed the benefits and drawbacks ...

Get J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.