JSTL Core c:param Tag

JSTL Core c:param Tag

The JavaServer Pages Standard Tag Library (JSTL) encapsulates core functionality common to many JSP applications. Instead of mixing tags from numerous vendors in your JSP applications, JSTL allows you to employ a single, standard set of tags. This standardization allows you to deploy your applications on any JSP container supporting JSTL and makes it more likely that the implementation of the tags is optimized.

Below is the syntax to include JSTL Core library in your JSP for JSTL Core c:param Tag :

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

JSTL Core c:param Tag :Adds a parameter to a containing ‘import’ tag’s URL.The syntax and attributes are as follows with example and ran on server to show you output:

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

<h2><c:url value="/cout.jsp" var="URLValue">
   <c:param name="Id" value="456"/>
   <c:param name="name" value="tagTest"/>
<c:import url="${URLValue}"/></h2>



JSTL Core c:param Tag output will be appended URL: “/cout.jsp?Id=456;name=tagTest”

JSTL Core c:param Tag

Leave a Reply

Your email address will not be published. Required fields are marked *

I am not Robot *