Core Syntax
| Description
|
Comment |
Documents the JSP page but is not inserted into the response. |
Declaration |
Declares a variable or method valid in the scripting language used in the page. |
Expression |
Contains an expression valid in the scripting language used in the page. |
Scriptlet |
Contains a code fragment valid in the scripting language used in the page. |
EL Expression |
Contains an expression in the JSP Expression Language (EL). See Expression Language section below for the syntax. |
Directives |
Description |
Attribute Directive |
Declares an attribute of the custom tag defined in the tag file. |
Include Directive |
Includes a resource of text or code when the JSP page is translated. |
Page Directive |
Defines attributes that apply to an entire JSP page. |
Tag Directive |
Similar to the page directive in a JSP page, but applies to tag files instead of JSP pages. |
Taglib Directive |
Defines a tag library and prefix for the custom tags used in the JSP page. |
Variable Directive |
Defines an expression language variable exposed by the tag to the calling page. |
Standard Actions
| Description
|
<jsp:attribute> |
Used as a substitute for attributes of standard or custom actions. |
<jsp:body> |
Explicitly defines an element body. This tag is required if the enclosing element contains any jsp:attribute tags. |
<jsp:element> |
Dynamically generates an XML element |
<jsp:doBody> |
Evaluates the body of the tag used by the calling page to invoke this tag file. |
<jsp:forward> |
Forwards a request to an HTML file, JSP page, or servlet. |
<jsp:getProperty> |
Inserts the value of a bean property into the response. |
<jsp:include> |
Includes a static resource or the result from another web component |
<jsp:invoke> |
Evaluates a fragment attribute. |
<jsp:output> |
Specifies the XML declaration or the document type declaration in the request output of a JSP document or a tag file that is in XML syntax. |
<jsp:plugin> |
Causes the execution of an applet or bean. The applet or bean executes in the specified plugin. If the plugin is not available, the client displays a dialog to initiate the download of the plugin software. |
<jsp:root> |
Defines standard elements and namespace attributes of tag libraries. |
<jsp:setProperty> |
Sets a bean property value or values. |
<jsp:text> |
Encloses template data. |
<jsp:useBean> |
Instantiates or references a bean with a specific name and scope. |