Hi,
I am using sessions, and I read hat there is the method
response.encodeURL(url) that adds the session id if cookies are
disabled. However, is there a way to use this method, but using a tag
from the JSTL or some other tag library?
Manish Pandit - 09 Oct 2007 00:34 GMT
> Hi,
>
> I am using sessions, and I read hat there is the method
> response.encodeURL(url) that adds the session id if cookies are
> disabled. However, is there a way to use this method, but using a tag
> from the JSTL or some other tag library?
You can use <c:url> tag from JSTL. It will encode URLs automatically
if cookies are not being used for session tracking.
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSTL4.html
-cheers,
Manish