Hi,
I have a problem with session tracking. Although I am using
response.encodeURL and responseRedirectURL methods to enable URL re-writing,
the session is lost if the user does not accept cookies.
There are 3 servlets, ServletA, ServletB and ServletC respectively. The
first one, ServletA generates an html form which send the output to ServletB
by calling HttpServletResponse.encodeUrl( ServletB ). When the ServletB
finished with its work on the request, it redirects to ServletC by calling
response.sendRedirect( response.encodeRedirectUrl(ServletC) ). The session
is carried from ServletA to ServletB successfully, but got lost when
redirected from B to C.
My configuration is Apache Web Server 1.3.6 with JServ 1.0 on Windows NT
(Service Pack 5). To use URL re-writing, mod_rewrite is enabled in the
httpd.conf as follows:
include "e:\apachegroup\ApacheJServ\conf\mod_jserv.conf"
LoadModule rewrite_module modules/ApacheModuleRewrite.dll
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^/ServletA$ /servlet/ServletA [PT]
RewriteRule ^/ServletB$ /servlet/ServletB [PT]
RewriteRule ^/ServletC$ /servlet/ServletC [PT]
RewriteLog logs/rewrite.log
RewriteLogLevel 9
</IfModule>
I am new to the URL-rewriting and mod_rewrite concepts, and couldn't figure
out where the problem is. I would appreciate any help on the topic. Thanks,
Yalcin
___________________________________________________________________________
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