Question: how to get jstl value in java?
Answer: JSTLSW variables are actually attributes, and by default are scoped at the page context level. As a result, if you need to access a JSTL variable value in a scriptletS, you can do so by calling the getAttribute() method on the appropriately scoped object (usually pageContext and request).