<jsp:param>
You can use the <jsp:param>
action in the
body of a <jsp:forward>
or
<jsp:include>
action to specify additional
request parameters for the target resource, as well as in the body of
a <jsp:params>
action to specify applet
parameters. It supports the attributes described in Table 1-7.
Name |
Java type |
Request-time value accepted |
Description |
|
|
no |
Mandatory. The parameter name. |
|
|
yes |
Mandatory. The parameter value. |
Example:
<jsp:include page="navigation.jsp"><jsp:param name="bgColor" value="<%= currentBGColor %>"
/>
</jsp:include>
Get JavaServer Pages Pocket Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.