Problem using c:set of jstl

The problem was that i was not able to set the value of a variable defined in a scriptlet.

Root cause: The tag lib i was using was perhaps of an older version.

Older version:

Newer version:

Please do post more information if you have more knowledge about this problem.