Ray Tayek wrote:
>
> hi, i am trying out the session snoop example from
> http://www.oreilly.com/catalog/jservlet/ using vc 3.0a and servletrunner on
> win98/oem. mostly it works fine. but the code:
>
> "Click <A HREF=\""+resp.encodeUrl(req.getRequestURI())+"\">here</A>"
>
> generates:
>
> Click <A HREF="/servlet/Properties">here</A>
>
> which does not appear to be doing anything. what am i missing here?

As you can read in tutorial:
http://java.sun.com/docs/books/tutorial/servlets/client-state/session-tracking.html

"While some web servers support URL rewriting, the servletrunner utility
does not. For session tracking to work when a servlet is running within
servletrunner, the user agent must support cookies."

Use Apache Jserv. It supports URL rewriting.

Martin

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   INET, a.s.                          Mgr. Martin Kuba
Kralovopolska 139                  e-mail: [EMAIL PROTECTED]
  601 12 Brno                      WWW: http://www.inet.cz/~makub/
 Czech Republic                    tel: +420-5-41242414/33
--------------------------------------------------------------------
PGP fingerprint = D8 57 47 E5 36 D2 C1 A1  C3 48 B2 59 00 58 42 27
 http://wwwkeys.cz.pgp.net:11371/pks/lookup?op=index&search=makub
--------------------------------------------------------------------

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to