Sessions - response.encodeURL

  • Thread starter Christine Mayer
  • Start date
C

Christine Mayer

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?
 
M

Manish Pandit

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top