Skip to Main Content
Special Edition Using Java™ Server Pages and Servlets
book

Special Edition Using Java™ Server Pages and Servlets

by Mark Wutka
October 2000
Intermediate to advanced content levelIntermediate to advanced
768 pages
16h 30m
English
Que
Content preview from Special Edition Using Java™ Server Pages and Servlets

Chapter 15. JSP Directives

In this chapter

The Java Server Pages specification contains four different types of tags that start with <%. The plain <% tag begins a block of Java code. The <%! tag begins a declaration of class attributes or methods. The <%= tag inserts the result of a Java expression in the output. The final <% tag is the directive tag, which is <%@. There are currently three directives in the JSP specification:

  • page

  • include

  • taglib

The page directive is a catchall for various page options that don't really warrant their own directive. The include directive allows you to include other files at compile time as opposed to runtime. The taglib lets you include an external library ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

J2EE™ and JAX™: Developing Web Applications and Web Services

J2EE™ and JAX™: Developing Web Applications and Web Services

Michael Yawn
J2EE™ Applications and BEA™ WebLogic Server™

J2EE™ Applications and BEA™ WebLogic Server™

Michael Girdley, Rob Woollen, Sandra L. Emerson

Publisher Resources

ISBN: 0789724413Purchase book