O'Reilly logo

Sams Teach Yourself J2EE™ in 21 Days by Peter Roxburgh, Andy Longshaw, Debbie Law, Dan Haywood, Martin Bond

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

Today, you have looked at using JavaServer Pages as a means of developing Web-based J2EE applications. Unlike servlets, JSPs allow you to develop your Web pages in HTML with embedded Java code when dynamic elements are required.

JSP pages are translated into Java servlets and compiled before they are used to service client requests. To the browser, a JSP is no different to any other Web page.

JSP defines three elements to supplement the standard HTML tags:

  • Directives that are used to pass information to the page translation phase

  • Scripts that define Java code used to embed dynamic data in the page

  • Actions that define JSP tags used to support JavaBeans

JavaBeans are used to encapsulate Java functionality to remove some Java script code from ...

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