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="" prefix="c" %>



            <title>&lt;c:set&gt;Tag Example In J.S.P</title>



                 <c:set var="pay" scope="session" value="${2500*4}"/>

                <p><b><center><br>Your Pay is :<c:out value="${pay}"/></center></b></p>



                  JSTL Core c set Tag

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.

About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.C.A, MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.