Chapter 4. Adding JavaBeans to Implement Functionality and Send Email

In This Chapter

  • What You Are Going To Do

  • Introduction to JavaBeans

  • Modifying the Calendar Application by Adding JavaBeans

  • Composing the JSPs Using JavaBeans

  • Sending Email from Within JSPs

  • Next Steps

As you probably noticed in the preceding two chapters, the JSP code has been well endowed with scriptlets. This has made understanding both the HTML source and the Java code interspersed in it very difficult. To add to those woes, the scriptlets cannot be tested independently of the JSP, so errors can be detected only at the content-generation stage.

So far, you have seen how to include the output of the monthly calendar into another JSP's content, but the reusability of ...

Get Java Server Pages from scratch 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.