Name
<c:param>
Synopsis
The <c:param>
action is used
as a nested action for
<c:import>
,
<c:redirect>
, and
<c:url>
to add a request parameter to a URL.
Syntax 1: Without a body
<c:param name="parameterName
" value="parameterValue
" />
Syntax 2: With a body
<c:param name="parameterName
">parameterValue
</c:param>
Attributes
Attribute name |
Java type |
Dynamic value accepted |
Description |
---|---|---|---|
name |
String |
Yes |
Parameter name |
value |
String |
Yes |
Parameter value |
Example
<c:import value="stock.jsp"> <c:param name="id" value="${param.stockSymbol}" /> </c:import>
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.