Download
FAQ
History
HomeHomeNext API
Search
Feedback
Divider

Scripting in JSP Pages

Stephanie Bodoff

JSP scripting elements allow you to use Java programming language statements in your JSP pages. Scripting element are typically used to create and access objects, define methods, and manage the flow of control. Many tasks that require the use of scripts can be eliminated by using custom tag libraries, in particular the JSP Standard Tag Library. Since one of the goals of JSP technology is to separate static template data from the code needed to dynamically generate content, very sparing use of JSP scripting is recommended. Nevertheless, there may be some circumstances that require its use.

There are three ways to create and use objects in scripting elements:

This chapter briefly describes the syntax and usage of JSP scripting elements.

Divider
Download
FAQ
History
HomeHomeNext API
Search
Feedback
Divider

All of the material in The Java(TM) Web Services Tutorial is copyright-protected and may not be published in other works without express written permission from Sun Microsystems.