tag
in
Syntax format
property
| property | Description | Whether it is required | Default value |
|---|---|---|---|
| name | The name of the parameter to set in the URL | Is | None |
| value | The value of the parameter | No | Body |
Program Example
If you want to pass parameters to the
Example
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
c:forTokens Tag Example
<
c:param
>
Example
">
Use
<
c:param
>
<
c:param
>
Example
">
Use
<
c:param
>Send two parameters to the specified URL.
Access the above page through a browser, then view the source code, which is displayed as follows:

JSP Standard Tag Library