December 2003
Intermediate to advanced
764 pages
24h 58m
English
<jsp:invoke>
The
<jsp:invoke>
action must only be used in a tag file. It evaluates the named
fragment, adding the output to the calling page’s
output stream or capturing it in a variable.
<jsp:invoke fragment="fragmentName" [var="var" | varReader="varReader"] [scope="page|request|session|application"] />
|
Attribute name |
Java type |
Dynamic value accepted |
Description |
fragment |
String |
No |
The name of an attribute that defines a fragment. |
scope |
String |
No |
The scope for the variable. |
var |
String |
No |
The name of the variable to hold the evaluation result as a
|
varReader |
String |
No |
The name of the variable to capture and expose the evaluation result
as a |
<%@ attribute name="pattern" fragment="true" %> <%-- Adding the evaluation result to the response --%> <jsp:invoke fragment="pattern"/> <%-- Capturing the evaluation result for further processing --%> <jsp:invoke fragment="pattern" var="result" />
Read now
Unlock full access