Is there a cleaner way to check the existence of a cookie instead of getting an array of cookie and iterating over one by one. I want check whether a cookie exist and i dont want my jsp to have a scriplet to check that. The existence of a session object can be determined by using <logic:empty> tag. is there a way something lilke this to check for cookies.
I believe you can do this with EL. ${Cookie.yourCookieName}. It will not return null if the cookie is not there.
Then you can use <c:if > tag to check if the resultant value is null. This means the cookie is not available.
<c:if test="${Cookie.yourCookieName = null}">
I am also a beginner to EL. Try implementing this.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@<br />You cannot solve a problem with the same level of understanding that created it. <br />@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@