Chapter 11. Using JSP Custom Tags

Using JSP Custom Tags

Using JavaBeans, you can separate the presentation part of a JSP page from the business rule implementation (Java code). However, only three action elements—jsp:useBean, jsp:getProperty, and jsp:setProperty—are available for accessing a bean. As such, in some situations, we have to resort to using code in a JSP page. In other words, oftentimes JavaBeans don’t offer complete separation of presentation and business rule implementation.

Take Listing 10.13, from the previous chapter, as an example. Even though the JSP page consists mainly of tags, we still need to write some Java code as initialization code for the ...

Get Java for the Web with Servlets, JSP, and EJB: A Developer’s Guide to J2EE Solutions 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.