The JSTL Core Tag is used to set a value to a variable or object in a specific scope like session. It works like setProperty action but the difference is that it can take a expression as an input, evaluate it and assign result to a variable or object.
Syntax:
c:set tag attributes:
Attribute | Description | Required |
value | Information to save. | No |
target | Name of the variable whose property should be modified. | No |
property | Property to modify. | No |
var | Name of the variable to store information. | No |
scope | Scope of variable to store information. | No |
Example:
test.jsp
web.xml
No comments:
Post a Comment