O'Reilly logo

J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software by Art Taylor

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required