<c:param name="paramName" value="paramValue"/>其中,paramName 为要传入的参数名称,paramValue 为要传入的参数值。
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <!DOCTYPE html> <html> <head> <title>编程帮(www.lmcjl.com)</title> </head> <body> <body> <c:url value="/mypage.jsp" var="completeURL"> <c:param name="id" value="736" /> <c:param name="user" value="bianchengbang" /> </c:url> ${completeURL} </body> </html>
/jspDemo/mypage.jsp?id=736&user=bianchengbang
本文链接:http://task.lmcjl.com/news/18979.html