Javaserver Pages Syntax Page 2

ADVERTISEMENT

J
S
P
™ (JSP™) S
AVA
ERVER
AG ES
YNTAX version 2.0
Usage
Description
Syntax
JSP
XML
Expression
A
Contains an expression valid in
<%= expression %>
<jsp:expression>
the page’s scripting language.
expression
</jsp:expression>
Scriptlet
A
Contains a code fragment valid
<% code fragment %>
<jsp:scriptlet>
in the page’s scripting language.
code fragment
</jsp:scriptlet>
Directives
Usage
Description
Syntax
JSP
XML
Attribute
TS, TX
Declares an attribute of the
<%@ attribute
name="attribute-name"
<jsp:directive.attribute attributeDirectiveAttrList />
custom tag defined in the tag
[ required="true | false" ]
file.
[ fragment="true | false" ]
where attributeDirectiveAttrList is the same as the list in the
[ rtexprvalue="true | false" ]
JSP column.
[ type="java.lang.String | a non-primitive type"]
[ description="text" ]
%>
Include
A
Includes a file, parsing the file’s
<%@ include file="relativeURL" %>
<jsp:directive.include file="relativeUR" />
JSP elements.
Page
S, X
Defines attributes that apply to a
<%@ page
<jsp:directive.page pageDirectiveAttrList />
JSP page.
[ language="java" ] [ extends="package.class" ]
[ import="{package.class | package.*} , ... " ]
where pageDirectiveAttrList is the same as the list in the JSP
[ session="true|false" ]
column.
[ buffer="none| 8kb|sizekb" ] [ autoFlush="true|false" ]
[ isThreadSafe="true|false" ] [ info="text" ]
[ errorPage="relativeURL" ] [ isErrorPage="true| false" ]
[ contentType="{mimeType [ ; charset=characterSet ] |
text/html ; charset=ISO-8859-1}" ]
[ pageEncoding="{characterSet | ISO-8859-1}" ]
[ isELIgnored="true | false" ]
%>

ADVERTISEMENT

00 votes

Related Articles

Related forms

Related Categories

Parent category: Education
Go
Page of 9