# jsp:param Tag

The <jsp:param> tag is used to provide key/value information. This tag is used in the jsp:include, jsp:forward and jsp:params tags. A translation error
occurs if the element is used elsewhere. When executing jsp:include or jsp:forward, the included page or forwarded page sees the original request object, with the original parameters augmented with the new parameters, with new values taking precedence over existing values when applicable. The scope of the new parameters is the jsp:include or jsp:forward call; that is, in the case of an jsp:include the new parameters (and values) will not apply after the include. For example, if the request has a parameter A=foo and a parameter A=bar is specified for forward, the forwarded request has A=bar,foo. Note that the
new param has precedence.

For more information, see the JavaServer Pages (JSP) v1.2 Syntax Reference on the Sun Microsystems® web site.

## Syntax

<jsp:param name="parameterName"
value="{parameterValue | <%= expression %>}" />

## Attributes

name="parameterName"

The name of the parameter.

value="{parameterValue | <%= expression %>}" />+

Specifies the parameter value and takes either a case-sensitive literal string or an expression that is evaluated at request time.

## Examples

    <jsp:param page="scripts/login.jsp" />
    <jsp:param page="copyright.html" />
    <jsp:param page="/index.html" />
    <jsp:param page="scripts/login.jsp">
       <jsp:param name="username" value="jsmith" />
    </jsp:param>

Related Topics

jsp:fallback Tag

jsp:forward Tag

jsp:getProperty Tag

jsp:include Tag

jsp:params Tag

jsp:plugin Tag

jsp:setProperty Tag

jsp:useBean Tag

JSP Tag Reference for Page Flows