you are trying to get to something that looks like http://host/app/myfile.jsp;jsessionid=x19293921?lhs=rhs. The response object has a encodeURL( String url ) operation that returns a formatted url with the jsessionid added if cookie support is turned off.
-----Original Message----- From: Sylvain Hamel [mailto:[EMAIL PROTECTED]] Sent: Friday, January 04, 2002 9:41 AM To: Tomcat Users List Subject: Re: ;jsessionid not working a short example would be appreciated... ----- Original Message ----- From: "John Moore" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Friday, January 04, 2002 12:40 PM Subject: RE: ;jsessionid not working > > You should be using the url encoding to get the session id. Also I'm pretty > sure that the ;jsessionid needs to come before the ?. > > John > > -----Original Message----- > From: Sylvain Hamel [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 04, 2002 9:34 AM > To: tomcat-user > Subject: ;jsessionid not working > > > OS : win98 > TOMCAT : 3.2.3 > > I cant seem to use a path sessionid for a non-cookie enable browser. > here is an example url that get sent to tomcat > > http://sylvain:9090/wap/menunewtask.jsp?;jsessionid=2w84ctnex1 > > the sessionid is obtained like this : > <%= session.getId() %> > > In order to debug this I added the following lines to the header.jsp file > that all my pages include : > > //--------------- > Date dateHeader = new Date(); > System.out.println(dateHeader.toString() + " SessionID : " + > session.getId()); > //----------------- > > A call to menunewtask will result in a new session id. > > What am I doing wrong??? > > Sylvain > > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
