<c:set var="test" value="yogesh"/>
Root cause: The tag lib i was using was perhaps of an older version.
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/jsp/core" %>
Please do post more information if you have more knowledge about this problem.