Name
<jsp:param>
Synopsis
The <jsp:param>
action can be used 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.
Syntax
<jsp:param name="parameterName
" value="parameterValue
" />
Attributes
Attribute name |
Java type |
Dynamic value accepted |
Description |
---|---|---|---|
name |
String |
No |
The parameter name |
value |
String |
RT expression |
The parameter value |
Example
<jsp:include page="navigation.jsp">
<jsp:param name="bgColor" value="<%= currentBGColor %>" />
</jsp:include>
Get JavaServer Pages, Second Edition 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.