Javaserver Pages Syntax Page 5

ADVERTISEMENT

Expression
Usage
Description
Syntax
Language
JSP
XML
Defines a function that can be
[Identifier :] Identifier '(' [Expression [',' Expression]+ ] ')'
Same as JSP syntax
FuncInvocation
A
invoked in an expression. For
example: f:equals(A, B) where f
is the prefix declared in a taglib
directive importing the tag
library that defines the function.
Literal
A
Supported literals: boolean,
{true | false} | (0-9)+ | FloatingPtLiteral | StringLiteral |
Same as JSP syntax
integer, floating point, String,
null
and null.
FloatingPtLiteral
A
Represents a floating-point
Same as JSP syntax
[0-9]+ . (0-9)+ [Exponent]
literal.
| (0-9)+ [Exponent]
Exponent
A
Represents an exponent used in
{e | E} ['+' | -] (0- 9)+
Same as JSP syntax
FloatingPtLiteral
StringLiteral
A
A string of any characters
{'[^(' | \) | \' | \\]+' | "[^(" | \) | \" | \\]+"}
Same as JSP syntax. XML syntax rules must be followed
enclosed by single or double
with respect to quoting inside attribute values.
quotes: 'string' | "string"
It is possible to use single quotes
within double quotes, and vice
versa, without escaping.
Escape characters:
\\ = Escaped \
\' = Escaped ', valid only inside "
\" = Escaped ", valid only inside '
Standard Elements
Usage
Description
Syntax
JSP
XML
<jsp:element>
A
Dynamically generates an
(<jsp:element name="elementName"
Same as JSP syntax
element.
( /> | > ( any elements or text </jsp:element> ))
)
| ( <jsp:element name="elementName">
[ <jsp:attribute name="attributeName"
[ trim="true | false" ]
( /> | (any elements or text </jsp:attribute> ) ) ]+
[ <jsp:body> any elements or text </jsp:body> ]
</jsp:element>
)

ADVERTISEMENT

00 votes

Related Articles

Related forms

Related Categories

Parent category: Education
Go
Page of 9