This tag is commonly use for the set property action of any object like to set value, property name. Their also some attributes are used to this tag like “Value” that’s use to save the information. “var” the variable name that has to store the information about value. The other thing this tag is use to evaluates the expression.
<%@ taglib uri=”http://java.sun.com/jsp/jstl/core” prefix=”c” %>
<html>
<head>
<title><c:set>Tag Example In J.S.P</title>
</head>
<body>
<c:set var=”pay” scope=”session” value=”${2500*4}”/>
<p><b><center><br>Your Pay is :<c:out value=”${pay}”/></center></b></p>
</body>
</html>
About Program…..
As we mentioned earlier that the <c: set> tag is used to set the property and its uses to evaluate the expression. In the program to elaborate this tag we use to set the salary of an employee in that some attributes like var variable that will store the info about output. Scope that has to admire the scope of variable that will store information. In last instance the salary is to be deployed on the web browser.