Name
<ora:param>
Synopsis
The <ora:param>
action can be used only in the body of the
<ora:forward>
. The specified parameter value
is URL-encoded, that is, all special characters are replaced with the
corresponding URL code for the character (such as a plus sign for a
blank).
Syntax
<ora:param name="paramName
" value="paramValue
" />
Attributes
Attributename |
Java type |
Dynamic valueaccepted |
Description |
---|---|---|---|
name |
String |
EL expression |
The parameter name |
value |
String |
EL expression |
The parameter value |
Example:
<%-- Forward to another page and add one parameter with a value from a bean property and one parameter with a static string value. --%> <ora:forward page="process.jsp"> <ora:param name="id" value="${product.id}" /> <ora:param name="action" value="list" /> </ora:forward>
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.