JSTL has a set of pre-defined objects such as pageScope, requestScope, param, paramValues and cookie.
If you have a cookie named ‘myCookie’, you can obtain its value as follows:
<c:out value="${cookie.myCookie.value}"/>
JSTL has a set of pre-defined objects such as pageScope, requestScope, param, paramValues and cookie.
If you have a cookie named ‘myCookie’, you can obtain its value as follows:
<c:out value="${cookie.myCookie.value}"/>
The URI to TrackBack this entry is: http://jdev.blogsome.com/2007/12/05/accessing-cookies-in-jstl/trackback/
No comments yet.
RSS feed for comments on this post.
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>