You are here:   HomeJava Server PagesJava Standard Tag Lib (JSTL)JSTL Core c set Tag

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>&lt;c:set&gt;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>

                  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.





Subscribe To Free Daily Newsletter!

Get Free News Updates Delivered Directly To Your Inbox
About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular Computer Notes 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.



What's New and Popular





Search Content







Advance Courses



Basic Courses



Advertise with Us