tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Deleris <dominique.dele...@bluewin.ch>
Subject Tomcat4 and encodeURL
Date Sat, 03 Aug 2002 20:00:33 GMT
Hi !

I'm new to J2EE, and therefore I am trying each and every example
of the programming book I've bought.

Now I am learning session handling w/ the servlet API, and would
like to use the URL-encoding style for keeping sessions, when the
browser's configuration does not allow to use cookies.

My (simple) example servlet is using the following instruction:
      String lifeCycleURL = response.encodeURL("/jtests/servlet/lifeCycle");
      out.println("<A href=\"" + lifeCycleURL + "?action=newSession\">");

This should modify my URL, adding ";jsessionid=xxx" where xxx is
the session ID. I can not get this to work, Tomcat will only
handle sessions using cookies...

Maybe I'm missing something?

I use :
Tomcat 4.0.4
Apache 1.3.26
mod-jk
Debian Woody (3.0)

-- 
Dominique Deleris
http://potatoworld.tuxfamily.org


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message