Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

tag

tag

JSP Standard Label LibraryJSP Standard Tag Library

The tag is used to specify parameters in the tag, and is related to URL encoding.

in Within the tag, the name attribute indicates the parameter's name, and the value attribute indicates the parameter's value.

Syntax format





property

The tag has the following attributes:

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 thetag, you need to first use thetag to create the URL:

Example

<%@ page language="java" contentType="text/html; charset=UTF-8"

   pageEncoding="UTF-8"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<p>c:forTokens Tag Example</p>

       

<

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 Label LibraryJSP Standard Tag Library